From dc40901143cc7aa84daef612345a8cc0e226909f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 11 Apr 2016 12:20:14 +0200 Subject: [PATCH] Restitution de l'erreur numerique + textuelle --- manager/ModuleAnswer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/ModuleAnswer.php b/manager/ModuleAnswer.php index e3d5fc1..7869be7 100755 --- a/manager/ModuleAnswer.php +++ b/manager/ModuleAnswer.php @@ -137,7 +137,7 @@ public function serialize(){ // On rajoute l'erreur au message - $returnData = array_merge( array('ModuleError' => ManagerError::explicit($this->error)), $this->data ); + $returnData = array_merge( array('ModuleError' => $this->error, 'ErrorDescription' => ManagerError::explicit($this->error)), $this->data ); return json_encode($returnData);