Display dialog on corrupted database
This commit is contained in:
parent
547ccd167c
commit
488ac22860
2 changed files with 38 additions and 23 deletions
|
@ -448,7 +448,7 @@ function _updateJob(id: number, data: ClientJobUpdateType) {
|
|||
window.log.error(
|
||||
`Detected corruption. Restarting the application immediately. Error: ${error.message}`
|
||||
);
|
||||
window.restart();
|
||||
ipcRenderer?.send('database-error', error.message);
|
||||
}
|
||||
|
||||
return reject(error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue