Fix unhandled promise rejection text content

This commit is contained in:
Fedor Indutny
2024-08-20 12:45:43 -07:00
committed by GitHub
parent 301f7a505a
commit 7431afa206
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -1847,7 +1847,9 @@ const onDatabaseError = async (error: Error) => {
if (buttonIndex === copyErrorAndQuitButtonIndex) {
clipboard.writeText(
`Database startup error:\n\n${redactAll(Errors.toLogFormat(error))}`
`Database startup error:\n\n${redactAll(Errors.toLogFormat(error))}\n\n` +
`App Version: ${app.getVersion()}\n` +
`OS: ${os.platform()}`
);
} else if (
typeof deleteAllDataButtonIndex === 'number' &&