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