sindresorhus / electron-unhandled

Catch unhandled errors and promise rejections in your Electron app
MIT License
448 stars 26 forks source link

Only show the error dialog in production by default? #6

Closed sindresorhus closed 6 years ago

sindresorhus commented 6 years ago

Currently, the GUI error dialog is always shown. I'm thinking it might be better to only show it in production as in development you most likely have DevTools open already and having to click away an alert dialog is just an inconvenience. Thoughts?

Would use electron-is-dev to check whether the app is in production or not.