Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
@@ -671,7 +671,7 @@ export class SocketManager implements ZoneEventListener {
|
||||
playGlobalMessageEvent: PlayGlobalMessage
|
||||
): Promise<void> {
|
||||
if (!client.tags.includes("admin")) {
|
||||
throw "Client is not an admin!";
|
||||
throw new Error("Client is not an admin!");
|
||||
}
|
||||
|
||||
const clientRoomUrl = client.roomId;
|
||||
|
||||
Reference in New Issue
Block a user