sindresorhus/electron-unhandled

Add a filter option

Open

#18 opened on Apr 1, 2020

View on GitHub
 (7 comments) (7 reactions) (0 assignees)JavaScript (27 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (464 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It would be great if we had a configurable filter function that, if defined in the options, gets called BEFORE the options.logger and showMessageBox function get called and returns true or false to decide if the error should pass or not.

That way one could filter out error messages like ERR_CONNECTION_REFUSED that are not catchable

Contributor guide