From 69758aead6f2abcba639b41ad24e3407ad45c1d3 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 28 Sep 2017 17:33:16 +0200 Subject: [PATCH] debug --- build/api/module/deployDefault.php | 4 ++-- build/api/module/machineDefault.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/api/module/deployDefault.php b/build/api/module/deployDefault.php index 4b9cb4c..2f1879b 100644 --- a/build/api/module/deployDefault.php +++ b/build/api/module/deployDefault.php @@ -35,14 +35,14 @@ /* (2) Gestion erreur */ if( $request->error->get() != Err::Success ) - return ['error' => new Error(Err::ModuleError)]; + return ['error' => $request->error]; /* (3) Exécution */ $response = $request->dispatch(); /* (4) Gestion erreur */ if( $response->error->get() != Err::Success ) - return ['error' => new Error(Err::ModuleError)]; + return ['error' => $response->error]; /* (5) Remontée du résultat */ return [ diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index d72cf8b..3b8b614 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -527,7 +527,7 @@ /* (4) Gestion erreur */ if( $dispatch_feat_res->error->get() != Err::Success ) - continue; + $features[$etree_name]['err'] = $dispatch_feat_res->error->get(); /* (5) Enregistrement des données */ $features[$etree_name] = $dispatch_feat_res->get('data'); @@ -539,8 +539,8 @@ /* [N] Retourne les données =========================================================*/ return [ - 'etrees' => $etrees, - 'features' => $features + 'etrees' => $etrees, + 'feature' => $features ]; }