Skip to content

Commit

Permalink
fix: Log instead of emit errors from IPC (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan authored Oct 29, 2021
1 parent 92f6b53 commit c9c3382
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client-ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ class IPC extends EventEmitter {
logger.debug('Received broadcast message', msg)

const { name, args } = msg
if (name === 'error') {
// TODO: Think through how/whether to handle these errors in the UX
logger.error('Broadcast message error', args)
return
}
this.emit(name, args)
}
}
Expand Down

0 comments on commit c9c3382

Please sign in to comment.