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]; }