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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart

Issue 49293003: Report wrapped pub exceptions with --verbose and --trace. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change Created 7 years, 1 month 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 | sdk/lib/_internal/pub/lib/src/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart b/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart
index 38938be500f17aec5d12bd33a354718345ff6028..fe4449f82cf8d12009389c266851fd6616bfe93b 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart
@@ -467,7 +467,7 @@ Future<Set> loadTransformers(BarbackServer server, BarbackMode mode,
log.fine("Transformers from $assetId: $transformers");
return transformers;
});
- }).catchError((error) {
+ }).catchError((error, stackTrace) {
if (error is! dart.CrossIsolateException) throw error;
if (error.type != 'IsolateSpawnException') throw error;
// TODO(nweiz): don't parse this as a string once issues 12617 and 12689
@@ -479,8 +479,8 @@ Future<Set> loadTransformers(BarbackServer server, BarbackMode mode,
// If there was an IsolateSpawnException and the import that actually
// failed was the one we were loading transformers from, throw an
// application exception with a more user-friendly message.
- fail('Transformer library "package:${id.package}/$path" not '
- 'found.');
+ fail('Transformer library "package:${id.package}/$path" not found.',
+ error, stackTrace);
});
});
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698