diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 12:46:00 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 12:46:00 +0300 |
commit | cd0aed3d54fc01d0c361a8cf282d2de48297f66a (patch) | |
tree | 9bd4d1a97827d95ad9e854ec5215dddfa1c953b9 /lib/api/commits.rb | |
parent | 0da5154b5a71216a9bbff861561636906ca8c167 (diff) |
Add a message when unable to save an object through api.
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 8e528e266bf..0de4e720ffe 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 - render_api_error!("Failed to save note #{note.errors.messages}", 422) + render_api_error!("Failed to save note #{note.errors.messages}", 400) end end end |