Skip to content

Commit

Permalink
NEW Add error message
Browse files Browse the repository at this point in the history
Returns the error message when the API can't add a new line in a proposal
  • Loading branch information
Neil Orley committed Dec 18, 2017
1 parent ee6b0d7 commit d8dac90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/comm/propal/class/api_proposals.class.php
Expand Up @@ -290,8 +290,9 @@ function postLine($id, $request_data = NULL)
if ($updateRes > 0) {
return $updateRes;
}

return false;
else {
throw new RestException(400, $this->propal->error);
}
}

/**
Expand Down

0 comments on commit d8dac90

Please sign in to comment.