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
path: root/lib/api
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-01-20 01:41:12 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-01-20 01:41:12 +0300
commitd8e440c8e05472b44a8e6cc59aecb6c53ba5a1d7 (patch)
tree0458eb72ec80af481f080d7e334efed8dc369e86 /lib/api
parenta5afcf0f377f63897b873ce75c814098bde3f1f3 (diff)
Fix specs
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 6b81fbf294e..49c5f0652ab 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -226,7 +226,7 @@ module API
end
def render_api_error!(message, status)
- error!({ 'message' => message }, status)
+ error!({ 'message' => message }, status, header)
end
def handle_api_exception(exception)