소스 검색

Update index.js

Lutz Roeder 3 년 전
부모
커밋
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) {