From bcd332fea174a2bf515d181b693767ece77a6bfb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 12 Aug 2018 02:39:24 -0600 Subject: [PATCH] v2.0.2: handle undefined error message string --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ae6c032..81ab45c 100644 --- a/index.js +++ b/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'; } } diff --git a/package.json b/package.json index 257db73..e8c36ba 100644 --- a/package.json +++ b/package.json @@ -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": {