File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/angular_devkit/build_angular/src/ng-packagr Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88
99import { BuilderContext , BuilderOutput , createBuilder } from '@angular-devkit/architect' ;
1010import { resolve } from 'path' ;
11- import { Observable , from } from 'rxjs' ;
12- import { mapTo , switchMap } from 'rxjs/operators' ;
11+ import { Observable , from , of } from 'rxjs' ;
12+ import { catchError , mapTo , switchMap } from 'rxjs/operators' ;
1313import { Schema as NgPackagrBuilderOptions } from './schema' ;
1414
1515async function initialize (
@@ -37,6 +37,7 @@ export function execute(
3737 return from ( initialize ( options , context . workspaceRoot ) ) . pipe (
3838 switchMap ( ( packager ) => ( options . watch ? packager . watch ( ) : packager . build ( ) ) ) ,
3939 mapTo ( { success : true } ) ,
40+ catchError ( ( err ) => of ( { success : false , error : err . message } ) ) ,
4041 ) ;
4142}
4243
You can’t perform that action at this time.
0 commit comments