Fix error message
This commit is contained in:
parent
df53826426
commit
53b43eb98a
@ -177,7 +177,7 @@ class Interventions extends DolibarrApi
|
||||
throw new RestException(503, 'Error when retrieve fichinter list : '.$db->lasterror());
|
||||
}
|
||||
if( ! count($obj_ret)) {
|
||||
throw new RestException(404, 'No finchinter found');
|
||||
throw new RestException(404, 'No intervention found');
|
||||
}
|
||||
return $obj_ret;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user