Index: bin/unittest.dart |
diff --git a/bin/unittest.dart b/bin/unittest.dart |
index b86cf2f1d14270005bc41c6eb2ddb4898b6b601c..0189c8f1c4b9233f6d8c0ed6ee92c86d4f20c4f2 100644 |
--- a/bin/unittest.dart |
+++ b/bin/unittest.dart |
@@ -78,12 +78,12 @@ void main(List<String> args) { |
}).whenComplete(() => reporter.close()); |
}).catchError((error, stackTrace) { |
if (error is LoadException) { |
- // TODO(nweiz): color this message? |
- stderr.writeln(getErrorMessage(error)); |
+ stderr.writeln(error.toString(color: color)); |
// Only print stack traces for load errors that come from the user's |
if (error.innerError is! IOException && |
error.innerError is! IsolateSpawnException && |
+ error.innerError is! FormatException && |
error.innerError is! String) { |
stderr.write(terseChain(stackTrace)); |
} |