@@ -995,7 +995,12 @@ namespace $ {
995
995
}
996
996
}
997
997
)
998
- if ( errors . length ) $mol_fail_hidden ( new $mol_error_mix ( `Build fail ${ path } ` , { } , ... errors ) )
998
+
999
+ if ( errors . length ) {
1000
+ const messages = errors . map ( e => ' ' + e . message ) . join ( '\n' )
1001
+ const error = new $mol_error_mix ( `Build fail ${ pack . relate ( ) } \n${ messages } ` , { } , ... errors )
1002
+ $mol_fail_hidden ( error )
1003
+ }
999
1004
1000
1005
var targetJSMap = pack . resolve ( `-/${ bundle } .js.map` )
1001
1006
@@ -1050,8 +1055,9 @@ namespace $ {
1050
1055
this . logBundle ( target , Date . now ( ) - start )
1051
1056
1052
1057
if ( errors . length ) {
1053
- const error = new $mol_error_mix ( `Build fail ${ path } ` , { } , ... errors )
1054
- target . text ( `console.error(${ JSON . stringify ( error ) } )` )
1058
+ const messages = errors . map ( e => ' ' + e . message ) . join ( '\n' )
1059
+ const error = new $mol_error_mix ( `Audit fail ${ pack . relate ( ) } \n${ messages } ` , { } , ... errors )
1060
+ target . text ( `console.error(${ JSON . stringify ( error . stack ) } )` )
1055
1061
$mol_fail_hidden ( error )
1056
1062
}
1057
1063
@@ -1106,7 +1112,11 @@ namespace $ {
1106
1112
1107
1113
this . logBundle ( target , Date . now ( ) - start )
1108
1114
1109
- if ( errors . length ) $mol_fail_hidden ( new $mol_error_mix ( `Build fail ${ path } ` , { } , ... errors ) )
1115
+ if ( errors . length ) {
1116
+ const messages = errors . map ( e => ' ' + e . message ) . join ( '\n' )
1117
+ const error = new $mol_error_mix ( `Build fail ${ pack . relate ( ) } \n${ messages } ` , { } , ... errors )
1118
+ $mol_fail_hidden ( error )
1119
+ }
1110
1120
1111
1121
if ( bundle === 'node' ) {
1112
1122
this . $ . $mol_exec ( this . root ( ) . path ( ) , 'node' , '--enable-source-maps' , '--trace-uncaught' , target . relate ( this . root ( ) ) )
0 commit comments