File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import buildExecuteLifecycleScript from "./commands/_execute-lifecycle-script.js" ;
13
13
import { ConsoleReporter , JSONReporter } from "../reporters/index.js" ;
14
- import { MessageError } from "../errors.js" ;
15
14
import * as commands from "./commands/index.js" ;
16
15
import * as constants from "../constants.js" ;
17
16
import * as network from "../util/network.js" ;
@@ -184,11 +183,7 @@ config.init().then(() => {
184
183
return run ( ) . then ( process . exit ) ;
185
184
} ) . catch ( function ( errs ) {
186
185
function logError ( err ) {
187
- if ( err instanceof MessageError ) {
188
- reporter . error ( err . stack ) ;
189
- } else {
190
- console . error ( err . stack ) ;
191
- }
186
+ reporter . error ( err . stack . replace ( / ^ E r r o r : / , "" ) ) ;
192
187
}
193
188
194
189
if ( Array . isArray ( errs ) ) {
You can’t perform that action at this time.
0 commit comments