FIX : displaing errors

This commit is contained in:
Adrien Raze 2025-12-16 16:54:24 +01:00
parent 74bfc0af71
commit 55b20bfdb9

View file

@ -338,7 +338,7 @@ class Productlots extends DolibarrApi
}
if ($this->productlot->delete(DolibarrApiAccess::$user) < 0) {
throw new RestException(500, 'Error when delete Product lot : '.$this->productlot->error);
throw new RestException(500, 'Error when delete Product lot : '.implode(',', $this->productlot->errors));
}
return array(