sindresorhus/electron-unhandled

Add a filter option

Open

#18 创建于 2020年4月1日

在 GitHub 查看
 (7 评论) (7 反应) (0 负责人)JavaScript (464 star) (27 fork)user submission
enhancementhelp wanted

描述

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

贡献者指南