Explorar o código

Only warn when getting an error in safeDestroy

JC Brand %!s(int64=3) %!d(string=hai) anos
pai
achega
a17e8bea1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}`);
         }
     },