Better reporting for DB corruption errors
This commit is contained in:
parent
092c2fd0d7
commit
1b1ed2cd05
7 changed files with 43 additions and 5 deletions
|
@ -573,7 +573,10 @@ function makeChannel(fnName: string) {
|
|||
'Detected sql corruption in renderer process. ' +
|
||||
`Restarting the application immediately. Error: ${error.message}`
|
||||
);
|
||||
ipc?.send('database-error', error.stack);
|
||||
ipc?.send(
|
||||
'database-error',
|
||||
`${error.stack}\n${Server.getCorruptionLog()}`
|
||||
);
|
||||
}
|
||||
log.error(
|
||||
`Renderer SQL channel job (${fnName}) error ${error.message}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue