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

Commit

Permalink
fix(xmpp): Handle XMPP error events (#26)
Browse files Browse the repository at this point in the history
Use debug() to show that there was an XMPP error
  • Loading branch information
maddox authored and swissmanu committed Sep 30, 2016
1 parent 0747ab9 commit 8057e91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/harmonyclient.js
Expand Up @@ -48,6 +48,9 @@ function HarmonyClient (xmppClient) {
}

xmppClient.on('stanza', handleStanza.bind(self))
xmppClient.on('error', function (error) {
debug('XMPP Error: ' + error.message)
})
EventEmitter.call(this)
}
util.inherits(HarmonyClient, EventEmitter)
Expand Down

0 comments on commit 8057e91

Please sign in to comment.