Skip to content

Commit

Permalink
do not log error if value is falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Feb 28, 2020
1 parent e46d89e commit af5e409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colyseus.js",
"version": "0.12.0",
"version": "0.12.1",
"description": "Multiplayer Game Client for the Browser",
"keywords": [
"colyseus",
Expand Down
2 changes: 1 addition & 1 deletion src/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Room<State= any> {
this.serializer = new (getSerializer("fossil-delta"));
}

this.onError((message) => console.error(message));
this.onError((message) => message && console.error(message));
this.onLeave(() => this.removeAllListeners());
}

Expand Down

0 comments on commit af5e409

Please sign in to comment.