NEW Add error message
Returns the error message when the API can't add a new line in a proposal
This commit is contained in:
parent
ee6b0d7237
commit
d8dac909d6
1 changed files with 3 additions and 2 deletions
|
|
@ -290,8 +290,9 @@ class Proposals extends DolibarrApi
|
|||
if ($updateRes > 0) {
|
||||
return $updateRes;
|
||||
}
|
||||
|
||||
return false;
|
||||
else {
|
||||
throw new RestException(400, $this->propal->error);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue