Catch unhandled errors and promise rejections in your Electron app
You can use this module directly in both the main and renderer process.
$ npm install electron-unhandled
const unhandled = require('electron-unhandled');
unhandled();
You probably want to call this both in the main process and any renderer processes to catch all possible errors.
Type: Object
Type: Function
Default: console.error
Custom logger that receives the error.
Can be useful if you for example integrate with Sentry.
Type: boolean
Default: true
Present an error dialog to the user.
- electron-store - Save and load data like user preferences, app state, cache, etc
- electron-debug - Adds useful debug features to your Electron app
- electron-context-menu - Context menu for your Electron app
- electron-dl - Simplified file downloads for your Electron app
MIT © Sindre Sorhus