From a3125d032361f45f7f17005c2d893ea963c0de59 Mon Sep 17 00:00:00 2001 From: mscdex Date: Wed, 3 Jul 2013 17:00:20 -0400 Subject: [PATCH] Connection: add 'type' to error object for tagged responses --- lib/Connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Connection.js b/lib/Connection.js index ca12679..199daf7 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1076,6 +1076,7 @@ Connection.prototype._resTagged = function(info) { else errtext = info.text; err = new Error(errtext); + err.type = info.type; err.textCode = info.textCode; err.source = 'protocol'; } else if (this._box) {