Pārlūkot izejas kodu

Update index.js

Lutz Roeder 3 gadi atpakaļ
vecāks
revīzija
3f3bd5be9f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) {