| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library barback.build_result; | 5 library barback.build_result; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:stack_trace/stack_trace.dart'; | 9 import 'package:stack_trace/stack_trace.dart'; |
| 10 | 10 |
| 11 import 'barback_logger.dart'; | |
| 12 import 'errors.dart'; | 11 import 'errors.dart'; |
| 13 import 'utils.dart'; | 12 import 'utils.dart'; |
| 14 | 13 |
| 15 /// An event indicating that the cascade has finished building all assets. | 14 /// An event indicating that the cascade has finished building all assets. |
| 16 /// | 15 /// |
| 17 /// A build can end either in success or failure. If there were no errors during | 16 /// A build can end either in success or failure. If there were no errors during |
| 18 /// the build, it's considered to be a success; any errors render it a failure, | 17 /// the build, it's considered to be a success; any errors render it a failure, |
| 19 /// although individual assets may still have built successfully. | 18 /// although individual assets may still have built successfully. |
| 20 class BuildResult { | 19 class BuildResult { |
| 21 // TODO(rnystrom): Revise how to track error results. Errors can come from | 20 // TODO(rnystrom): Revise how to track error results. Errors can come from |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 msg.write(prefixLines(error.toString())); | 54 msg.write(prefixLines(error.toString())); |
| 56 if (stackTrace != null) { | 55 if (stackTrace != null) { |
| 57 msg.write("\n\n"); | 56 msg.write("\n\n"); |
| 58 msg.write("Stack trace:\n"); | 57 msg.write("Stack trace:\n"); |
| 59 msg.write(prefixLines(stackTrace.toString())); | 58 msg.write(prefixLines(stackTrace.toString())); |
| 60 } | 59 } |
| 61 return msg.toString(); | 60 return msg.toString(); |
| 62 }).join("\n\n"); | 61 }).join("\n\n"); |
| 63 } | 62 } |
| 64 } | 63 } |
| OLD | NEW |