commit
ea7051f6a0
@ -1774,7 +1774,7 @@ class Setup extends DolibarrApi
|
|||||||
|
|
||||||
$result = $establishment->fetch($id);
|
$result = $establishment->fetch($id);
|
||||||
if ($result < 0) {
|
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) {
|
} elseif ($result == 0) {
|
||||||
throw new RestException(404, 'Establishment not found');
|
throw new RestException(404, 'Establishment not found');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user