debug to fetchDefault::dispatch from its dispatchers error to 'saved' field for the etree feature Err:: code negative
This commit is contained in:
parent
21570a7328
commit
22795697a3
|
@ -50,14 +50,14 @@
|
||||||
|
|
||||||
/* (2) Gestion erreur */
|
/* (2) Gestion erreur */
|
||||||
if( $request->error->get() != Err::Success )
|
if( $request->error->get() != Err::Success )
|
||||||
return ['error' => new Error(Err::ModuleError)];
|
return ['saved' => -$request->error->get()];
|
||||||
|
|
||||||
/* (3) Exécution */
|
/* (3) Exécution */
|
||||||
$response = $request->dispatch();
|
$response = $request->dispatch();
|
||||||
|
|
||||||
/* (4) Gestion erreur */
|
/* (4) Gestion erreur */
|
||||||
if( $response->error->get() != Err::Success )
|
if( $response->error->get() != Err::Success )
|
||||||
return [ 'saved' => 0 ];
|
return [ 'saved' => -$response->error->get() ];
|
||||||
|
|
||||||
/* (5) Remontée du résultat */
|
/* (5) Remontée du résultat */
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue