Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: bin/unittest.dart

Issue 1027193004: Respect top-level @TestOn declarations. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Add another test. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}
« no previous file with comments | « README.md ('k') | lib/src/backend/metadata.dart » ('j') | lib/src/backend/platform_selector.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698