dopry / pecans

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
Apache License 2.0
7 stars 7 forks source link

There is no way to capture exceptions thrown by the backend.releases() call inside the Pecans constructor #14

Open JCMais opened 2 months ago

JCMais commented 2 months ago

First, thanks for forking the original nuts library and providing support for it!

Given the current code, if an exception is thrown by the pending promise, it will crash the process with an unhandled rejection error.

As a workaround, I am manually adding a .catch to the pending promises, but ideally the library should provide a way to avoid that.