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 e4a104936cb70abb2722329fa97a7f1abf821735..e2e792999c93bc30b44a6728a614220f3409a76f 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)); |
} |