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

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. 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 | « 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
This is Rietveld 408576698