FIX : displaing errors
This commit is contained in:
parent
74bfc0af71
commit
55b20bfdb9
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue