Chromium Code Reviews

Unified Diff: pkg/polymer/lib/src/build/runner.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/test/build/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/runner.dart
diff --git a/pkg/polymer/lib/src/build/runner.dart b/pkg/polymer/lib/src/build/runner.dart
index b59b1b8d814cb5c13b8e48fe02e4bc437fd183c9..c7658deb8ae20ba20fa6a2232092cec9842fa8e2 100644
--- a/pkg/polymer/lib/src/build/runner.dart
+++ b/pkg/polymer/lib/src/build/runner.dart
@@ -174,7 +174,8 @@ void _initBarback(Barback barback, BarbackOptions options) {
void _attachListeners(Barback barback) {
// Listen for errors and results
barback.errors.listen((e) {
- var trace = getAttachedStackTrace(e);
+ var trace = null;
+ if (e is Error) trace = e.stackTrace;
if (trace != null) {
print(Trace.format(trace));
}
« no previous file with comments | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/test/build/common.dart » ('j') | no next file with comments »

Powered by Google App Engine