debug to fetchDefault::dispatch from its dispatchers error to 'saved' field for the etree feature Err:: code negative

This commit is contained in:
xdrm-brackets 2017-10-13 19:11:24 +02:00
parent 21570a7328
commit 22795697a3
1 changed files with 2 additions and 2 deletions

View File

@ -50,14 +50,14 @@
/* (2) Gestion erreur */
if( $request->error->get() != Err::Success )
return ['error' => new Error(Err::ModuleError)];
return ['saved' => -$request->error->get()];
/* (3) Exécution */
$response = $request->dispatch();
/* (4) Gestion erreur */
if( $response->error->get() != Err::Success )
return [ 'saved' => 0 ];
return [ 'saved' => -$response->error->get() ];
/* (5) Remontée du résultat */
return [