File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -257,17 +257,21 @@ export default class PluginAPI {
257
257
}
258
258
} ;
259
259
_commandErrorHandler ( e ) {
260
+ log ( '_commandErrorHandler' ) ;
260
261
process . exitCode = 1 ;
261
262
262
263
// Only show error when not from nodemiral
263
264
// since nodemiral would have already shown the error
264
265
if ( ! ( e . nodemiralHistory instanceof Array ) ) {
266
+ log ( '_commandErrorHandler: nodemiral error' ) ;
265
267
console . error ( e . stack || e ) ;
266
268
}
267
269
268
270
if ( e . solution ) {
269
271
console . log ( chalk . yellow ( e . solution ) ) ;
270
272
}
273
+
274
+ process . exit ( 1 ) ;
271
275
}
272
276
runCommand = async function ( name ) {
273
277
if ( ! name ) {
@@ -284,7 +288,6 @@ export default class PluginAPI {
284
288
potentialPromise = commands [ name ] . handler ( this , nodemiral ) ;
285
289
} catch ( e ) {
286
290
this . _commandErrorHandler ( e ) ;
287
- process . exit ( 1 ) ;
288
291
}
289
292
290
293
if ( potentialPromise && typeof potentialPromise . then === 'function' ) {
You can’t perform that action at this time.
0 commit comments