Skip to content

Commit

Permalink
be sure to reject things when there's an error
Browse files Browse the repository at this point in the history
  • Loading branch information
eeue56 authored Nov 28, 2018
1 parent 13bff52 commit 5833058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const initializeConfigUpdate = (conf) => {

webSocket.on("error", (error) => {
console.error(error);
reject(error);
});

webSocket.on("close", () => {
Expand Down

0 comments on commit 5833058

Please sign in to comment.