Explorar el Código

Only warn when getting an error in safeDestroy

JC Brand hace 3 años
padre
commit
a17e8bea1c
Se han modificado 1 ficheros con 1 adiciones y 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}`);
         }
     },