Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(logging): don't log msgs about websocket state
Browse files Browse the repository at this point in the history
don't log msgs about websocket state
  • Loading branch information
danbucholtz committed Dec 16, 2016
1 parent 45b0255 commit 18185fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev-server/notification-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function createNotificationServer(config: ServeConfig) {
try {
sendMethod(JSON.stringify(msg));
} catch (e) {
if (e.message !== 'not opened') {
if (e.message !== 'not opened' && e.message !== `Cannot read property 'readyState' of undefined`) {
Logger.error(`error sending client ws - ${e.message}`);
}
}
Expand Down

0 comments on commit 18185fb

Please sign in to comment.