Skip to content

Commit ffe5d13

Browse files
authored
Merge pull request #155 from R4wizard/master
Expose MatchMakeError and add name to error
2 parents 96be59c + a29e683 commit ffe5d13

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export class MatchMakeError extends Error {
1313
constructor(message: string, code: number) {
1414
super(message);
1515
this.code = code;
16+
this.name = "MatchMakeError";
1617
Object.setPrototypeOf(this, MatchMakeError.prototype);
1718
}
1819
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import './legacy';
22

3-
export { Client, JoinOptions } from './Client';
3+
export { Client, JoinOptions, MatchMakeError } from './Client';
44
export { Protocol, ErrorCode, SeatReservation } from './Protocol';
55
export { Room, RoomAvailable } from './Room';
66
export { Auth, type AuthSettings, type PopupSettings } from "./Auth";

0 commit comments

Comments
 (0)