Restitution de l'erreur numerique + textuelle
This commit is contained in:
parent
050f7259d4
commit
dc40901143
|
@ -137,7 +137,7 @@
|
||||||
public function serialize(){
|
public function serialize(){
|
||||||
|
|
||||||
// On rajoute l'erreur au message
|
// 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);
|
return json_encode($returnData);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue