Jelajahi Sumber

Show stacktrace on error properly

Lennart Grahl 6 tahun lalu
induk
melakukan
23de8e01ba
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/services/webclient.ts

+ 2 - 1
src/services/webclient.ts

@@ -3954,7 +3954,8 @@ export class WebClientService {
             try {
                 messageHandler.apply(this, [message.subType, message]);
             } catch (error) {
-                this.$log.error(this.logTag, `Unable to handle incoming wire message: ${error}`, error.stack);
+                this.$log.error(this.logTag, 'Unable to handle incoming wire message:', error);
+                console.trace(error); // tslint:disable-line:no-console
                 return;
             }
         }