Better reporting for DB corruption errors

This commit is contained in:
Fedor Indutny
2021-10-21 13:13:33 -07:00
committed by GitHub
parent 092c2fd0d7
commit 1b1ed2cd05
7 changed files with 43 additions and 5 deletions

View File

@@ -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}`