Merge pull request #20052 from ptibogxiv/patch-4

FIX API REST setup
This commit is contained in:
Laurent Destailleur 2022-02-17 19:53:19 +01:00 committed by GitHub
commit ea7051f6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1774,7 +1774,7 @@ class Setup extends DolibarrApi
$result = $establishment->fetch($id);
if ($result < 0) {
throw new RestException(503, 'Error when retrieving state : '.$establishment->error);
throw new RestException(503, 'Error when retrieving establishment : '.$establishment->error);
} elseif ($result == 0) {
throw new RestException(404, 'Establishment not found');
}