[MM-50011] Disable popping the dialog box for uncaught exceptions (#2519)
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user