| Index: pkg/dev_compiler/test/codegen_test.dart
|
| diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
|
| index 13f5e723683df1d1a15d9faa746e3c47ac05cf4f..cd572250a6f007f22b9636c73a464dec992db46b 100644
|
| --- a/pkg/dev_compiler/test/codegen_test.dart
|
| +++ b/pkg/dev_compiler/test/codegen_test.dart
|
| @@ -156,9 +156,13 @@ main(List<String> arguments) {
|
| compiler = new ModuleCompiler(analyzerOptions);
|
| }
|
| JSModuleFile module = null;
|
| + var exception, stackTrace;
|
| try {
|
| module = compiler.compile(unit, options);
|
| - } catch (e) {}
|
| + } catch (e, st) {
|
| + exception = e;
|
| + stackTrace = st;
|
| + }
|
|
|
| bool expectedCompileTimeError =
|
| contents.contains(': compile-time error\n');
|
| @@ -167,7 +171,8 @@ main(List<String> arguments) {
|
|
|
| if (module == null) {
|
| expect(crashing, isTrue,
|
| - reason: "test $name crashes during compilation.");
|
| + reason: "test $name crashes during compilation.\n"
|
| + "$exception\n$stackTrace");
|
| } else if (module.isValid) {
|
| _writeModule(
|
| path.join(codegenOutputDir, name),
|
|
|