Browse Source

try to fix errorcode exception

andre 5 ngày trước cách đây
mục cha
commit
3ba5441647
1 tập tin đã thay đổi với 3 bổ sung11 xóa
  1. 3 11
      core/Traits/ErrorCodesLibrary.php

+ 3 - 11
core/Traits/ErrorCodesLibrary.php

@@ -34,19 +34,11 @@ trait ErrorCodesLibrary
     {
         $this->loadErrorCodes();
  
-        logModuleCall(
-            'proxmoxCloud',
-            __FUNCTION__,
-            $code,
-            'Debug Error',
-            $this
-        );
-
-        if ($this->errorCodesAppHandler->errorCodeExists($code[ErrorCodes::CODE]))
+        if ($this->errorCodesAppHandler->errorCodeExists($code))
         {
-            return $this->errorCodesAppHandler->getErrorMessageByCode($code[ErrorCodes::CODE]);
+            return $this->errorCodesAppHandler->getErrorMessageByCode($code);
         }
        
-        return $this->errorCodesCoreHandler->getErrorMessageByCode($code[ErrorCodes::CODE]);
+        return $this->errorCodesCoreHandler->getErrorMessageByCode($code);
     }
 }