Explorar el Código

add error handling for alias already exist

andre hace 2 años
padre
commit
a01499e5fc
Se han modificado 1 ficheros con 1 adiciones y 8 borrados
  1. 1 8
      app/Libs/Zimbra/Components/Api/Soap/Actions/Account.php

+ 1 - 8
app/Libs/Zimbra/Components/Api/Soap/Actions/Account.php

@@ -81,14 +81,7 @@ class Account extends AbstractAction
             return $alias;
             return $alias;
         }
         }
 
 
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            $result,
-            'Debug API Response',
-            $result->getLastError()
-        );
-
+        $this->setError($result->getLastError());
         return false;
         return false;
     }
     }