Fix error message

This commit is contained in:
Laurent Destailleur 2019-08-13 19:34:21 +02:00
parent df53826426
commit 53b43eb98a

View File

@ -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;
}