Skip to content

Commit 5f80702

Browse files
clydinKeen Yee Liau
authored andcommitted
fix(@angular-devkit/build-ng-packagr): propogate errors during execution
1 parent c652ec7 commit 5f80702

File tree

1 file changed

+1
-6
lines changed
  • packages/angular_devkit/build_ng_packagr/src/build

1 file changed

+1
-6
lines changed

packages/angular_devkit/build_ng_packagr/src/build/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect';
99
import { resolve } from 'path';
1010
import { Observable, from } from 'rxjs';
11-
import { catchError, mapTo, switchMap } from 'rxjs/operators';
11+
import { mapTo, switchMap } from 'rxjs/operators';
1212
import { Schema as NgPackagrBuilderOptions } from './schema';
1313

1414
async function initialize(
@@ -33,11 +33,6 @@ export function execute(
3333
return from(initialize(options, context.workspaceRoot)).pipe(
3434
switchMap(packager => options.watch ? packager.watch() : packager.build()),
3535
mapTo({ success: true }),
36-
catchError(error => {
37-
context.reportStatus('Error: ' + error);
38-
39-
return [{ success: false }];
40-
}),
4136
);
4237
}
4338

0 commit comments

Comments
 (0)