Skip to content

Commit 5a98e3d

Browse files
sindresorhusmatheuss
authored andcommitted
Show Aperture errors and report to Sentry (#140)
* Show Aperture error in an error dialog instead of hiding it in DevTools * Log Aperture errors to Sentry
1 parent d157bb3 commit 5a98e3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/renderer/js/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import fileSize from 'file-size';
77
import moment from 'moment';
88

99
import {convertToGif, convertToWebm} from '../../scripts/convert';
10-
import {init as initErrorReporter} from '../../common/reporter';
10+
import {init as initErrorReporter, report as reportError} from '../../common/reporter';
1111
import {log} from '../../common/logger';
1212

1313
// note: `./` == `/app/dist/renderer/views`, not `js`
@@ -204,7 +204,8 @@ document.addEventListener('DOMContentLoaded', () => {
204204
.catch(err => {
205205
ipcRenderer.send('will-stop-recording');
206206
log(err);
207-
setMainWindowTitle('Error');
207+
reportError(err);
208+
remote.dialog.showErrorBox('Recording error', err.message);
208209
});
209210
}
210211

0 commit comments

Comments
 (0)