Use proper logging if error pops when deleting all logs
This commit is contained in:

committed by
Scott Nonnenberg

parent
12d9d41548
commit
2373840df8
@@ -73,8 +73,8 @@ function initialize() {
|
||||
ipc.on('delete-all-logs', async (event) => {
|
||||
try {
|
||||
await deleteAllLogs(logPath);
|
||||
} catch (e) {
|
||||
console.log('Something went wrong!');
|
||||
} catch (error) {
|
||||
logger.error(`Problem deleting all logs: ${error.stack}`);
|
||||
}
|
||||
|
||||
event.sender.send('delete-all-logs-complete');
|
||||
|
Reference in New Issue
Block a user