diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 10:46:00 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-07 10:46:00 +0100 |
commit | cd0aed3d54fc01d0c361a8cf282d2de48297f66a (patch) | |
tree | 9bd4d1a97827d95ad9e854ec5215dddfa1c953b9 /lib/api/groups.rb | |
parent | 0da5154b5a71216a9bbff861561636906ca8c167 (diff) | |
download | gitlab-ce-cd0aed3d54fc01d0c361a8cf282d2de48297f66a.tar.gz |
Add a message when unable to save an object through api.
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index cee51c82ad5..bda60b3b7d5 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -54,7 +54,7 @@ module API if @group.save present @group, with: Entities::Group else - render_api_error!("Failed to save group #{@group.errors.messages}", 422) + render_api_error!("Failed to save group #{@group.errors.messages}", 400) end end @@ -97,7 +97,7 @@ module API if result present group else - render_api_error!("Failed to transfer project #{project.errors.messages}", 422) + render_api_error!("Failed to transfer project #{project.errors.messages}", 400) end end end |