Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
fix: debug log error
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdiogo committed Jun 13, 2018
1 parent 575369f commit caa451e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,8 @@ class Listener extends EE {
(cb) => this._crypto(cb)
], (err) => {
if (err) {
this.log('success', err)
this.log('error', err)
if (!(err instanceof Error)) err = new Error(err)
log(err)
this._down()
this.emit('error', err)
this.emit('close')
Expand Down

0 comments on commit caa451e

Please sign in to comment.