This commit is contained in:
xdrm-brackets 2017-09-28 17:33:16 +02:00
parent b851826a9b
commit 69758aead6
2 changed files with 5 additions and 5 deletions

View File

@ -35,14 +35,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 ['error' => $request->error];
/* (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 ['error' => new Error(Err::ModuleError)]; return ['error' => $response->error];
/* (5) Remontée du résultat */ /* (5) Remontée du résultat */
return [ return [

View File

@ -527,7 +527,7 @@
/* (4) Gestion erreur */ /* (4) Gestion erreur */
if( $dispatch_feat_res->error->get() != Err::Success ) if( $dispatch_feat_res->error->get() != Err::Success )
continue; $features[$etree_name]['err'] = $dispatch_feat_res->error->get();
/* (5) Enregistrement des données */ /* (5) Enregistrement des données */
$features[$etree_name] = $dispatch_feat_res->get('data'); $features[$etree_name] = $dispatch_feat_res->get('data');
@ -540,7 +540,7 @@
=========================================================*/ =========================================================*/
return [ return [
'etrees' => $etrees, 'etrees' => $etrees,
'features' => $features 'feature' => $features
]; ];
} }