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

Unified Diff: lib/src/executable.dart

Issue 1055083004: Normalize handling of the package root in the runner. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Unused import Created 5 years, 8 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
« no previous file with comments | « no previous file | lib/src/runner/application_exception.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/executable.dart
diff --git a/lib/src/executable.dart b/lib/src/executable.dart
index a36cf74d1440298cf6f0184bad957f014a0dfeea..aad1fcd6310a86e7be05ea0110b388ae116df0c7 100644
--- a/lib/src/executable.dart
+++ b/lib/src/executable.dart
@@ -17,6 +17,7 @@ import 'package:yaml/yaml.dart';
import 'backend/test_platform.dart';
import 'runner/reporter/compact.dart';
+import 'runner/application_exception.dart';
import 'runner/load_exception.dart';
import 'runner/load_exception_suite.dart';
import 'runner/loader.dart';
@@ -249,6 +250,12 @@ transformers:
return reporter.close();
});
}).whenComplete(signalSubscription.cancel).catchError((error, stackTrace) {
+ if (error is ApplicationException) {
+ stderr.writeln(error.message);
+ exitCode = exit_codes.data;
+ return;
+ }
+
stderr.writeln(getErrorMessage(error));
stderr.writeln(new Trace.from(stackTrace).terse);
stderr.writeln(
« no previous file with comments | « no previous file | lib/src/runner/application_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698