Display dialog on corrupted database

This commit is contained in:
Fedor Indutny 2021-08-24 13:31:06 -07:00 committed by GitHub
parent 547ccd167c
commit 488ac22860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 23 deletions

View file

@ -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);