summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorSabba Petri <sabbap@gmail.com>2015-02-24 09:55:25 -0800
committerSabba Petri <sabbap@gmail.com>2015-02-24 09:55:25 -0800
commita33e615b471f8c9b49b1a1baf79f7380ce606790 (patch)
tree13e90fbb81aa60d8a2ee5540742d40d9438b0b99 /lib/api/files.rb
parent846f83177448832bd04ea0167b34541b5d3b71c6 (diff)
parent428df28cda4b31a70d908e612bbad627b32c3426 (diff)
downloadgitlab-ce-a33e615b471f8c9b49b1a1baf79f7380ce606790.tar.gz
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into small_profile_changes
Diffstat (limited to 'lib/api/files.rb')
-rw-r--r--lib/api/files.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index e6e71bac367..3176ef0e256 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -117,7 +117,8 @@ module API
branch_name: branch_name
}
else
- render_api_error!(result[:message], 400)
+ http_status = result[:http_status] || 400
+ render_api_error!(result[:message], http_status)
end
end