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

貢獻者指南