v2.0.2: handle undefined error message string
This commit is contained in:
parent
d8dd3b32b4
commit
bcd332fea1
2
index.js
2
index.js
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue