diff --git a/application/modules/achatclient/controllers/IndexController.php b/application/modules/achatclient/controllers/IndexController.php index d048a59f8..faffaba43 100644 --- a/application/modules/achatclient/controllers/IndexController.php +++ b/application/modules/achatclient/controllers/IndexController.php @@ -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');