Optimisation Gestion d'erreur
This commit is contained in:
parent
61a3878b5b
commit
1a538ed012
@ -56,7 +56,7 @@ class Achatclient_IndexController extends Zend_Controller_Action
|
||||
try {
|
||||
$infocredit = $ws->infoCredit();
|
||||
} catch(Exception $e) {
|
||||
echo $e->getMessage();
|
||||
$this->error('index','Pas de crédit');
|
||||
}
|
||||
if ($infocredit === false || empty($infocredit)) {
|
||||
$this->error('index','Compte indisponible');
|
||||
|
Loading…
Reference in New Issue
Block a user