Lutz Roeder 3 лет назад
Родитель
Сommit
3f3bd5be9f
1 измененных файлов с 1 добавлено и 1 удалено
  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) {