1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[client] Stop writing c# in javascript files :P

This commit is contained in:
Starbeamrainbowlabs 2017-10-23 19:51:40 +01:00
parent aca12a3012
commit e214bbbb07
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ class ClientManager extends EventEmitter
*/ */
get(targetId) { get(targetId) {
if(!this.otherClients.has(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); return this.otherClients.get(targetId);
} }

View file

@ -96,7 +96,7 @@ class OtherClient
fetchLine(lineId) fetchLine(lineId)
{ {
if(!this.currentLines.hasOwnProperty(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]; return this.currentLines[lineId];
} }