File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -227,10 +227,21 @@ export class Install {
227227 await Promise . race ( [
228228 new Promise < void > ( ( resolve , reject ) => {
229229 Exec . exec ( `limactl ${ limaStartArgs . join ( ' ' ) } ` , [ ] , { env : envs } )
230- . then ( ( ) => resolve ( ) )
231- . catch ( reject ) ;
230+ . then ( ( ) => {
231+ core . info ( 'limactl command completed successfully' ) ;
232+ resolve ( ) ;
233+ } )
234+ . catch ( err => {
235+ core . error ( `limactl command failed: ${ err . message } ` ) ;
236+ reject ( err ) ;
237+ } ) ;
232238 } ) ,
233- new Promise ( ( _ , reject ) => setTimeout ( ( ) => reject ( new Error ( 'Timeout reached' ) ) , limaStartTimeout ) )
239+ new Promise ( ( _ , reject ) => {
240+ setTimeout ( ( ) => {
241+ core . error ( 'Timeout reached' ) ;
242+ reject ( new Error ( 'Timeout reached' ) ) ;
243+ } , limaStartTimeout ) ;
244+ } )
234245 ] ) ;
235246 } catch ( e ) {
236247 fsp
@@ -249,6 +260,7 @@ export class Install {
249260 . catch ( ( ) => {
250261 // ignore
251262 } ) ;
263+ await Exec . exec ( `limactl delete ${ this . limaInstanceName } ` , [ ] , { env : envs } ) ;
252264 throw e ;
253265 }
254266 } ) ;
You can’t perform that action at this time.
0 commit comments