From 22795697a39fc161bcf6e93431ed82d4414659cf Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 13 Oct 2017 19:11:24 +0200 Subject: [PATCH] debug to fetchDefault::dispatch from its dispatchers error to 'saved' field for the etree feature Err:: code negative --- build/api/module/fetchDefault.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/api/module/fetchDefault.php b/build/api/module/fetchDefault.php index 56dc1ea..a41a5ec 100644 --- a/build/api/module/fetchDefault.php +++ b/build/api/module/fetchDefault.php @@ -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 [