v2.0.2: handle undefined error message string

This commit is contained in:
AJ ONeal 2018-08-12 02:39:24 -06:00
parent d8dd3b32b4
commit bcd332fea1
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ Packer.create = function (opts) {
try {
msg = JSON.parse(data.toString());
} catch(e) {
msg.message = data.toString();
msg.message = 'e:' + JSON.stringify(data);
msg.code = 'E_UNKNOWN_ERR';
}
}

View File

@ -1,6 +1,6 @@
{
"name": "proxy-packer",
"version": "2.0.1",
"version": "2.0.2",
"description": "A strategy for packing and unpacking a proxy stream (i.e. packets through a tunnel). Handles multiplexed and tls connections. Used by telebit and telebitd.",
"main": "index.js",
"scripts": {