File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ class SchemaUpdater {
60
60
}
61
61
} ) ;
62
62
}
63
- }
64
63
65
- try {
66
- fs . writeJsonSync ( configFileV1 , config , { spaces : 2 } ) ;
67
- } catch ( error ) {
68
- debugLogger ( `Failed to write config to "${ configFileV1 } ": ${ error . message } ` , error ) ;
64
+ try {
65
+ fs . writeJsonSync ( configFileV1 , config , { spaces : 2 } ) ;
66
+ } catch ( error ) {
67
+ debugLogger ( `Failed to write config to "${ configFileV1 } ": ${ error . message } ` , error ) ;
68
+ }
69
69
}
70
70
71
71
return configFileV1 ;
Original file line number Diff line number Diff line change @@ -308,7 +308,11 @@ const renameLogFile = () => {
308
308
} )
309
309
. forEach ( file => {
310
310
if ( file . endsWith ( '.log' ) ) {
311
- fs . renameSync ( file , file . replace ( '.log' , '.old' ) ) ;
311
+ try {
312
+ fs . renameSync ( file , file . replace ( '.log' , '.old' ) ) ;
313
+ } catch ( error ) {
314
+ console . error ( `Failed to rename log file: ${ error . message } ` ) ;
315
+ }
312
316
}
313
317
} ) ;
314
318
} ) ;
You can’t perform that action at this time.
0 commit comments