File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ Promise.all([findFreePort(), findFreePort()])
181
181
} else {
182
182
console . log ( colors . green ( 'Done.' ) ) ;
183
183
}
184
+
185
+ process . exitCode = 0 ;
184
186
} catch ( err ) {
185
187
if ( err instanceof Error ) {
186
188
console . log ( '\n' ) ;
@@ -202,16 +204,16 @@ Promise.all([findFreePort(), findFreePort()])
202
204
}
203
205
}
204
206
205
- throw err ;
207
+ process . exitCode = 1 ;
206
208
} finally {
207
209
registryProcess . kill ( ) ;
208
210
secureRegistryProcess . kill ( ) ;
209
211
}
210
212
} )
211
- . then (
212
- ( ) => process . exit ( 0 ) ,
213
- ( ) => process . exit ( 1 ) ,
214
- ) ;
213
+ . catch ( ( err ) => {
214
+ console . error ( colors . red ( `Unkown Error: ${ err } ` ) ) ;
215
+ process . exitCode = 1 ;
216
+ } ) ;
215
217
216
218
async function runSteps (
217
219
run : ( name : string ) => Promise < void > | void ,
You can’t perform that action at this time.
0 commit comments