| Index: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
|
| index d79cec7c43dd1736749ac62e5d1cff0f663bf421..777ee8ff171e7714acdf0465e1873d4aefe47d7f 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
|
| @@ -79,18 +79,17 @@ class Dart2JSTransformer extends Transformer {
|
| packageRoot: packageRoot,
|
| inputProvider: provider.readStringFromUri,
|
| diagnosticHandler: provider.handleDiagnostic).then((js) {
|
| - if (js == null) {
|
| - // The compile failed and errors should have already been reported
|
| - // through the diagnostic handler, so just do nothing here.
|
| - return;
|
| - }
|
| -
|
| var id = transform.primaryInput.id.changeExtension(".dart.js");
|
| transform.addOutput(new Asset.fromString(id, js));
|
|
|
| stopwatch.stop();
|
| transform.logger.info("Generated $id (${js.length} characters) in "
|
| "${stopwatch.elapsed}");
|
| + }).catchError((error) {
|
| + // The compile failed and errors have been reported through the
|
| + // diagnostic handler, so just do nothing here.
|
| + if (error is CompilerException) return;
|
| + throw error;
|
| });
|
| });
|
| }
|
|
|