[MM-50011] Disable popping the dialog box for uncaught exceptions (#2519)

This commit is contained in:
Devin Binnie
2023-01-27 09:05:32 -05:00
committed by GitHub
parent 59c98036ee
commit cf6611cc87
3 changed files with 7 additions and 3 deletions

View File

@@ -68,6 +68,10 @@ export class CriticalErrorHandler {
const report = createErrorReport(err);
fs.writeFileSync(file, report.replace(new RegExp('\\n', 'g'), os.EOL));
if (process.env.NODE_ENV === 'test') {
return;
}
if (app.isReady()) {
const buttons = [
localizeMessage('main.CriticalErrorHandler.uncaughtException.button.showDetails', 'Show Details'),