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:
Neil Orley 2017-12-18 14:36:41 +01:00
parent ee6b0d7237
commit d8dac909d6

View File

@ -290,8 +290,9 @@ class Proposals extends DolibarrApi
if ($updateRes > 0) {
return $updateRes;
}
return false;
else {
throw new RestException(400, $this->propal->error);
}
}
/**