From 7d8f9f146e1fc823aa74f19d852855044fa31e5f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 23 Jul 2017 02:13:53 +0200 Subject: [PATCH] test#5 --- build/api/module/machineDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index be17c97..ac2567a 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -691,7 +691,7 @@ /* (2) On gère l'erreur */ if( $updateNetId->error->get() != Err::Success || !$updateNetId->answer() ) - return [ 'error' => new Error(Err::RepoError), 'details' => $updateNetId->answer() ]; + return [ 'error' => new Error(Err::RepoError), 'details' => [ 'status' => $updateNetId->answer(), 'id' => $fetched['identity'] ] ]; /* [3] Gestion des données à envoyer