Chromium Code Reviews| Index: pkg/barback/lib/src/build_result.dart |
| diff --git a/pkg/barback/lib/src/build_result.dart b/pkg/barback/lib/src/build_result.dart |
| index 65e82690ccc9f9ea23015fc44b745b61b650db47..31690dd45196b1ac08c5cc0834f912e2218ab128 100644 |
| --- a/pkg/barback/lib/src/build_result.dart |
| +++ b/pkg/barback/lib/src/build_result.dart |
| @@ -47,8 +47,12 @@ class BuildResult { |
| if (succeeded) return "success"; |
| return "errors:\n" + errors.map((error) { |
| - var stackTrace = getAttachedStackTrace(error); |
| - if (stackTrace != null) stackTrace = new Trace.from(stackTrace); |
| + var stackTrace = null; |
| + if (error is Error || |
|
nweiz
2013/10/31 00:41:55
There's no way this will be an Error, since all me
floitsch
2013/10/31 00:44:20
Done.
|
| + error is TransformerException || |
| + error is AssetLoadException) { |
| + stackTrace = new Trace.from(error.stackTrace); |
| + } |
| var msg = new StringBuffer(); |
| msg.write(prefixLines(error.toString())); |