From e214bbbb07f4942e71f43128fd0c3c8e5857412b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 23 Oct 2017 19:51:40 +0100 Subject: [PATCH] [client] Stop writing c# in javascript files :P --- Nibriboard/ClientFiles/ClientManager.js | 2 +- Nibriboard/ClientFiles/OtherClient.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nibriboard/ClientFiles/ClientManager.js b/Nibriboard/ClientFiles/ClientManager.js index 86263ba..f844dfc 100644 --- a/Nibriboard/ClientFiles/ClientManager.js +++ b/Nibriboard/ClientFiles/ClientManager.js @@ -70,7 +70,7 @@ class ClientManager extends EventEmitter */ get(targetId) { if(!this.otherClients.has(targetId)) - throw new Exception(`Error: The other client with the id ${targetId} couldn't be found.`); + throw new Error(`Error: The other client with the id ${targetId} couldn't be found.`); return this.otherClients.get(targetId); } diff --git a/Nibriboard/ClientFiles/OtherClient.js b/Nibriboard/ClientFiles/OtherClient.js index 9dc0a1a..aada101 100644 --- a/Nibriboard/ClientFiles/OtherClient.js +++ b/Nibriboard/ClientFiles/OtherClient.js @@ -96,7 +96,7 @@ class OtherClient fetchLine(lineId) { if(!this.currentLines.hasOwnProperty(lineId)) - throw new Exception(`Error: A client with the id ${lineId} does not appear to be attached to the OtherClient with the id ${this.Id}`); + throw new Error(`Error: A client with the id ${lineId} does not appear to be attached to the OtherClient with the id ${this.Id}`); return this.currentLines[lineId]; }