Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart

Issue 598883002: Fix an error-swallowing bug in pub and several bugs it was hiding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart b/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart
index cb4a64425bb0cde213fb527a76101f7d9db9eaa0..b23eb14dd20543022a56a113ae13b38e813ada6b 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart
@@ -83,6 +83,7 @@ Future loadAllTransformers(AssetEnvironment environment,
package.pubspec.transformers);
var transformers = environment.getBuiltInTransformers(package);
if (transformers != null) phases.add(transformers);
+ if (phases.isEmpty) return;
// TODO(nweiz): remove the [newFuture] here when issue 17305 is fixed.
// If no transformer in [phases] applies to a source input,

Powered by Google App Engine
This is Rietveld 408576698