Improving error throwing and handling in pusher/admin/front
This commit is contained in:
parent
9bfd07f00c
commit
cd7a332b4c
4 changed files with 21 additions and 9 deletions
|
@ -69,7 +69,7 @@ class ConnectionManager {
|
|||
return Promise.resolve(new Room(roomId));
|
||||
}
|
||||
|
||||
return Promise.reject('Invalid URL');
|
||||
return Promise.reject(new Error('Invalid URL'));
|
||||
}
|
||||
|
||||
private async verifyToken(token: string): Promise<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue