Connection: add 'type' to error object for tagged responses

fork
mscdex 12 years ago
parent dfae2cb8d0
commit a3125d0323

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

Loading…
Cancel
Save