Skip to content

Commit

Permalink
fix(connection): do not swallow decode errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyeh committed Oct 8, 2018
1 parent 58ecf0d commit 6853d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export default class Connection extends WebSocketPlus {
message = GenericCommand.decode(msg);
if (debug.enabled) debug('↓ %O received', trim(message));
} catch (e) {
console.warn('Decode message failed', msg);
console.warn('Decode message failed:', e.message, msg);
return;
}
const serialId = message.i;
if (serialId) {
Expand Down

0 comments on commit 6853d09

Please sign in to comment.