Browse Source

Only warn when getting an error in safeDestroy

JC Brand 3 năm trước cách đây
mục cha
commit
a17e8bea1c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/headless/plugins/chat/message.js

+ 1 - 1
src/headless/plugins/chat/message.js

@@ -101,7 +101,7 @@ const MessageMixin = {
         try {
             this.destroy();
         } catch (e) {
-            log.error(e);
+            log.warn(`safeDestroy: ${e}`);
         }
     },