diff --git a/lib/browser/postal.diagnostics.js b/lib/browser/postal.diagnostics.js index 059be4d..f1d0516 100644 --- a/lib/browser/postal.diagnostics.js +++ b/lib/browser/postal.diagnostics.js @@ -8,7 +8,7 @@ postal.addWireTap(function(data, envelope) { } catch(exception) { try { - all.data = exception; + all.data = "ERROR: " + exception.message; console.log(JSON.stringify(all)); } catch(ex) { diff --git a/lib/browser/postal.diagnostics.min.gz.js b/lib/browser/postal.diagnostics.min.gz.js index 72d0ad0..69b48ef 100644 Binary files a/lib/browser/postal.diagnostics.min.gz.js and b/lib/browser/postal.diagnostics.min.gz.js differ diff --git a/lib/browser/postal.diagnostics.min.js b/lib/browser/postal.diagnostics.min.js index adeaa53..9ba4bdd 100644 --- a/lib/browser/postal.diagnostics.min.js +++ b/lib/browser/postal.diagnostics.min.js @@ -1 +1 @@ -postal.addWireTap(function(a,b){var c=_.extend(b,{data:a});if(!JSON)throw"This browser or environment does not provide JSON support";try{console.log(JSON.stringify(c))}catch(d){try{c.data=d,console.log(JSON.stringify(c))}catch(e){console.log("Unable to parse data to JSON: "+d)}}}) \ No newline at end of file +postal.addWireTap(function(a,b){var c=_.extend(b,{data:a});if(!JSON)throw"This browser or environment does not provide JSON support";try{console.log(JSON.stringify(c))}catch(d){try{c.data="ERROR: "+d.message,console.log(JSON.stringify(c))}catch(e){console.log("Unable to parse data to JSON: "+d)}}}) \ No newline at end of file diff --git a/lib/browser/postal.min.gz.js b/lib/browser/postal.min.gz.js index 35d2599..e967588 100644 Binary files a/lib/browser/postal.min.gz.js and b/lib/browser/postal.min.gz.js differ diff --git a/lib/node/postal.diagnostics.js b/lib/node/postal.diagnostics.js index 39f4c4b..adc74af 100644 --- a/lib/node/postal.diagnostics.js +++ b/lib/node/postal.diagnostics.js @@ -9,7 +9,7 @@ postal.addWireTap(function(data, envelope) { } catch(exception) { try { - all.data = exception; + all.data = "ERROR: " + exception.message; console.log(JSON.stringify(all)); } catch(ex) { diff --git a/src/diags/postal.diagnostics.js b/src/diags/postal.diagnostics.js index 059be4d..f1d0516 100644 --- a/src/diags/postal.diagnostics.js +++ b/src/diags/postal.diagnostics.js @@ -8,7 +8,7 @@ postal.addWireTap(function(data, envelope) { } catch(exception) { try { - all.data = exception; + all.data = "ERROR: " + exception.message; console.log(JSON.stringify(all)); } catch(ex) {