-
-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): correctly handle errors on listenThe Promise constructor…
… doesn't automatically catch errors if its handlerfunction is async. Use try/catch to avoid unhandled rejections.If the server is closed because the port is already in used, use anon-zero exit code and log it as an error. (#1175)
- Loading branch information
1 parent
be417ca
commit ebdf015
Showing
1 changed file
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters