1
0
Fork 0

[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) {
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);
}

View File

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