| Index: pkg/barback/lib/src/asset_cascade.dart
|
| diff --git a/pkg/barback/lib/src/asset_cascade.dart b/pkg/barback/lib/src/asset_cascade.dart
|
| index 9eec80041c467d9fec3eb872676b90fb399c150f..9857c8061eeb30bea6f74d45cacc2d5af81a7fe3 100644
|
| --- a/pkg/barback/lib/src/asset_cascade.dart
|
| +++ b/pkg/barback/lib/src/asset_cascade.dart
|
| @@ -121,7 +121,10 @@ class AssetCascade {
|
|
|
| // Keep track of logged errors so we can know that the build failed.
|
| onLog.listen((entry) {
|
| - if (entry.level == LogLevel.ERROR) _numLogErrors++;
|
| + if (entry.level == LogLevel.ERROR) {
|
| + _accumulatedErrors.add(
|
| + new TransformerException(entry.transform, entry.message));
|
| + }
|
| });
|
| }
|
|
|
| @@ -261,7 +264,7 @@ class AssetCascade {
|
| // Report the build completion.
|
| // TODO(rnystrom): Put some useful data in here.
|
| _resultsController.add(
|
| - new BuildResult(_accumulatedErrors, _numLogErrors));
|
| + new BuildResult(_accumulatedErrors));
|
| }).catchError((error) {
|
| // If we get here, it's an unexpected error. Runtime errors like missing
|
| // assets should be handled earlier. Errors from transformers or other
|
|
|