From 604e698f8e928ca51be814c3bb0cae85c45a45e9 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 22 Feb 2022 09:04:57 +0000 Subject: [PATCH] no need to be shy! shout all you want about errors. --- server/Streams.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/Streams.js b/server/Streams.js index 7d6708d..daf2d68 100644 --- a/server/Streams.js +++ b/server/Streams.js @@ -45,7 +45,10 @@ module.exports = class { try { delete this.avaliableStreams[streamName]; this.avaliableStreamKeys = Object.keys(this.avaliableStreams); - } catch (e) { consoleHelper.printError(`Was not able to remove stream [${streamName}]`) } + } catch (e) { + consoleHelper.printError(`Was not able to remove stream [${streamName}]`); + console.error(e); + } } addUserToStream(streamName, userToken) { @@ -91,7 +94,10 @@ module.exports = class { // Remove user from stream's user list this.avaliableStreams[streamName].streamUsers.splice(userCurrentIndex, 1); consoleHelper.printBancho(`Removed user [${userToken}] from stream ${streamName}`); - } catch (e) { consoleHelper.printBancho(`Can't Remove user [${userToken}] from stream ${streamName}`); } + } catch (e) { + consoleHelper.printBancho(`Can't Remove user [${userToken}] from stream ${streamName}`); + console.error(e); + } } sendToStream(streamName, streamData, initUser = null) {