Improving error throwing and handling in pusher/admin/front

This commit is contained in:
David Négrier 2021-03-31 15:48:25 +02:00
parent 9bfd07f00c
commit cd7a332b4c
4 changed files with 21 additions and 9 deletions

View file

@ -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> {