From 5833058dbf1dc50eced212316d5de293830db3d8 Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 29 Nov 2018 00:18:05 +0100 Subject: [PATCH] be sure to reject things when there's an error --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 25e93f7..6fc1cb3 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,7 @@ const initializeConfigUpdate = (conf) => { webSocket.on("error", (error) => { console.error(error); + reject(error); }); webSocket.on("close", () => {