From f794ac729e382fc7f80dee65f773c61b7d2241f7 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Sun, 5 Nov 2017 21:02:15 +0900 Subject: [PATCH] Remove fs.writeFileSync(2) to avoid crashing on Windows --- src/main/CriticalErrorHandler.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/CriticalErrorHandler.js b/src/main/CriticalErrorHandler.js index 1bb5b807..747ada51 100644 --- a/src/main/CriticalErrorHandler.js +++ b/src/main/CriticalErrorHandler.js @@ -57,7 +57,6 @@ class CriticalErrorHandler { const file = path.join(app.getPath('userData'), `uncaughtException-${Date.now()}.txt`); const report = createErrorReport(err); fs.writeFileSync(file, report.replace(new RegExp('\\n', 'g'), os.EOL)); - fs.writeSync(2, `See "${file}" to report the problem.\n`); if (app.isReady()) { const showMessageBox = bindWindowToShowMessageBox(this.mainWindow);