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)); |
} |