Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-01-07 12:46:00 +0300
committerMarin Jankovski <maxlazio@gmail.com>2015-01-07 12:46:00 +0300
commitcd0aed3d54fc01d0c361a8cf282d2de48297f66a (patch)
tree9bd4d1a97827d95ad9e854ec5215dddfa1c953b9 /lib/api/commits.rb
parent0da5154b5a71216a9bbff861561636906ca8c167 (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.rb2
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