diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-12-30 14:00:07 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-12-30 14:00:07 +0100 |
commit | d4b613ded728bbd45e5d67e5af555d661581ecf0 (patch) | |
tree | 64ed2b41bb83834c5cb76ba8d4488971cdcce35a /lib/api/commits.rb | |
parent | 7fa80b5bd01caff61c08c70b052c9965893cce5a (diff) | |
download | gitlab-ce-d4b613ded728bbd45e5d67e5af555d661581ecf0.tar.gz |
Clearer message if adding comment to commit via api fails.
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index 6c5391b98c8..1aea6943000 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -108,7 +108,7 @@ module API if note.save present note, with: Entities::CommitNote else - not_found! + error!("Failed to save note", 422) end end end |