Przeglądaj źródła

add error handling for alias already exist

andre 2 lat temu
rodzic
commit
a01499e5fc

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

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