Explorar o código

Update index.js

Lutz Roeder %!s(int64=3) %!d(string=hai) anos
pai
achega
3f3bd5be9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/index.js

+ 1 - 1
source/index.js

@@ -351,7 +351,7 @@ host.BrowserHost = class {
     exception(error, fatal) {
         if (this._telemetry && this.window.ga && error && error.telemetry !== false) {
             const description = [];
-            description.push((error && error.name ? (error.name + ': ') : '') + (error && error.message ? error.message : '(null)'));
+            description.push((error && error.name ? (error.name + ': ') : '') + (error && error.message ? error.message : JSON.stringify(error)));
             if (error.stack) {
                 const match = error.stack.match(/\n {4}at (.*)\((.*)\)/);
                 if (match) {