| 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 'errors.dart'; |
| 11 import 'utils.dart'; | 12 import 'utils.dart'; |
| 12 | 13 |
| 13 /// An event indicating that the cascade has finished building all assets. | 14 /// An event indicating that the cascade has finished building all assets. |
| 14 /// | 15 /// |
| 15 /// 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 |
| 16 /// 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, |
| 17 /// although individual assets may still have built successfully. | 18 /// although individual assets may still have built successfully. |
| 18 class BuildResult { | 19 class BuildResult { |
| 19 /// All errors that occurred during the build. | 20 /// All errors that occurred during the build. |
| 20 final Set<BarbackException> errors; | 21 final Set<BarbackException> errors; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 msg.write(prefixLines(error.toString())); | 43 msg.write(prefixLines(error.toString())); |
| 43 if (stackTrace != null) { | 44 if (stackTrace != null) { |
| 44 msg.write("\n\n"); | 45 msg.write("\n\n"); |
| 45 msg.write("Stack trace:\n"); | 46 msg.write("Stack trace:\n"); |
| 46 msg.write(prefixLines(stackTrace.toString())); | 47 msg.write(prefixLines(stackTrace.toString())); |
| 47 } | 48 } |
| 48 return msg.toString(); | 49 return msg.toString(); |
| 49 }).join("\n\n"); | 50 }).join("\n\n"); |
| 50 } | 51 } |
| 51 } | 52 } |
| OLD | NEW |