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) {