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
@ -290,8 +290,9 @@ class Proposals extends DolibarrApi
|
|||||||
if ($updateRes > 0) {
|
if ($updateRes > 0) {
|
||||||
return $updateRes;
|
return $updateRes;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
return false;
|
throw new RestException(400, $this->propal->error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user