From e96102d9ceb2dea8c7f8eb87da56b64ef058d5cf Mon Sep 17 00:00:00 2001 From: mscdex Date: Thu, 4 Jul 2013 08:34:10 -0400 Subject: [PATCH] Connection: 'level' is now 'source' for Errors --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index 40e817a..4b33bb4 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -942,7 +942,7 @@ Connection.prototype._resUntagged = function(info) { if (this.state === 'connected' && !this._curReq) { clearTimeout(this._tmrConn); var err = new Error('Received negative welcome: ' + info.text); - err.level = 'protocol'; + err.source = 'protocol'; this.emit('error', err); this._sock.end(); }