File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/angular_devkit/build_angular/src/browser Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -568,9 +568,9 @@ export function buildWebpackBrowser(
568568 '' ,
569569 ) ;
570570 } catch ( err ) {
571- spinner . fail ( colors . redBright ( 'Localized bundle generation failed: ' + err . message ) ) ;
571+ spinner . fail ( colors . redBright ( 'Localized bundle generation failed.' ) ) ;
572572
573- return { success : false } ;
573+ return { success : false , error : mapErrorToMessage ( err ) } ;
574574 }
575575
576576 if ( hasErrors ) {
@@ -688,7 +688,7 @@ export function buildWebpackBrowser(
688688 }
689689
690690 // Copy assets
691- if ( ! options . watch && options . assets ) {
691+ if ( ! options . watch && options . assets ?. length ) {
692692 try {
693693 await copyAssets (
694694 normalizeAssetPatterns (
@@ -702,9 +702,7 @@ export function buildWebpackBrowser(
702702 context . workspaceRoot ,
703703 ) ;
704704 } catch ( err ) {
705- context . logger . error ( 'Unable to copy assets: ' + err . message ) ;
706-
707- return { success : false } ;
705+ return { success : false , error : 'Unable to copy assets: ' + err . message } ;
708706 }
709707 }
710708
You can’t perform that action at this time.
0 commit comments