Index: lib/src/errors.dart |
diff --git a/lib/src/errors.dart b/lib/src/errors.dart |
index 3488e31459528b3c9ac40c140715eb7b552774a4..96cfbc7ee5a0704868b1b0d00ab6ffda0b729e43 100644 |
--- a/lib/src/errors.dart |
+++ b/lib/src/errors.dart |
@@ -24,8 +24,8 @@ class AssetNotFoundException implements Exception { |
Iterable<BarbackException> flattenAggregateExceptions( |
Iterable<BarbackException> errors) { |
return errors.expand((error) { |
- if (error is! AggregateException) return [error]; |
- return error.errors; |
+ if (error is AggregateException) return error.errors; |
+ return [error]; |
}); |
} |