Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
@@ -691,7 +691,7 @@ export class RoomConnection implements RoomConnection {
|
||||
}
|
||||
|
||||
public getUserId(): number {
|
||||
if (this.userId === null) throw "UserId cannot be null!";
|
||||
if (this.userId === null) throw new Error("UserId cannot be null!");
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user