File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,11 @@ var Project = function () {
485
485
}
486
486
} ;
487
487
} ) , function ( err ) {
488
+ if ( err ) {
489
+ logError ( err ) ;
490
+ process . exit ( 1 ) ;
491
+ }
492
+
488
493
var statsInfo = stats . toJson ( { errorDetails : false } ) ;
489
494
490
495
if ( statsInfo . warnings . length > 0 ) {
@@ -546,6 +551,10 @@ var Project = function () {
546
551
}
547
552
} ;
548
553
} ) ) , function ( err ) {
554
+ if ( err ) {
555
+ logError ( err ) ;
556
+ process . exit ( 1 ) ;
557
+ }
549
558
compilerProcess ( ) ;
550
559
} ) ;
551
560
Original file line number Diff line number Diff line change @@ -490,7 +490,12 @@ class Project {
490
490
}
491
491
} ;
492
492
} ) ,
493
- err => {
493
+ ( err ) => {
494
+ if ( err ) {
495
+ logError ( err ) ;
496
+ process . exit ( 1 ) ;
497
+ }
498
+
494
499
let statsInfo = stats . toJson ( { errorDetails : false } ) ;
495
500
496
501
if ( statsInfo . warnings . length > 0 ) {
@@ -551,7 +556,7 @@ class Project {
551
556
// 支持异步调用
552
557
let isAsync = false ;
553
558
beforePackItem . bind ( {
554
- async : function ( ) {
559
+ async : function ( ) {
555
560
isAsync = true ;
556
561
return callback ;
557
562
}
@@ -562,7 +567,11 @@ class Project {
562
567
}
563
568
} ;
564
569
} ) ) ,
565
- err => {
570
+ ( err ) => {
571
+ if ( err ) {
572
+ logError ( err ) ;
573
+ process . exit ( 1 ) ;
574
+ }
566
575
compilerProcess ( ) ;
567
576
}
568
577
) ;
You can’t perform that action at this time.
0 commit comments