summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers.rb')
-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 cd2e39bf3a7..424a17b283c 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -5,7 +5,7 @@ module Gitlab
end
def authenticate!
- error!('401 Unauthorized', 401) unless current_user
+ error!({'message' => '401 Unauthorized'}, 401) unless current_user
end
end
end