sindresorhus/electron-unhandled

Add a filter option

开放

#18 创建于 2020年4月1日

 (7 条评论) (7 个反应) (0 位负责人)JavaScript (27 个派生)user submission
enhancementhelp wanted

仓库指标

星标
 (464 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南