File tree 1 file changed +5
-3
lines changed
arduino-ide-extension/src/node
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -696,6 +696,9 @@ export class SketchesServiceImpl
696
696
const index = this . scheduledDeletions . indexOf ( disposable ) ;
697
697
if ( index >= 0 ) {
698
698
this . scheduledDeletions . splice ( index , 1 ) ;
699
+ this . logger . info (
700
+ `Removed the successfully completed scheduled sketch deletion: ${ sketchPath } `
701
+ ) ;
699
702
} else {
700
703
this . logger . warn (
701
704
`Could not find the scheduled sketch deletion: ${ sketchPath } `
@@ -714,10 +717,9 @@ export class SketchesServiceImpl
714
717
rmSync ( sketchPath , { recursive : true , maxRetries : 5 } ) ;
715
718
this . logger . info ( `<<< Deleted sketch ${ sketchPath } .` ) ;
716
719
} catch ( err ) {
717
- if ( ErrnoException . isENOENT ( err ) ) {
718
- // ignore. it does not exist
720
+ if ( ! ErrnoException . isENOENT ( err ) ) {
721
+ throw err ;
719
722
}
720
- throw err ;
721
723
}
722
724
}
723
725
You can’t perform that action at this time.
0 commit comments