diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-06-29 03:52:20 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-06-29 03:52:20 -0700 |
commit | 1d2c98186014cedc01f04382d507a34a71008ab1 (patch) | |
tree | fa6c4e2b1cb05d38342dc48c42d30fd097a632b7 /lib/api | |
parent | 0d67f209fcbabed5831d90561350a8e094c150c4 (diff) | |
download | gitlab-ce-1d2c98186014cedc01f04382d507a34a71008ab1.tar.gz |
return errors in json format
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/helpers.rb | 2 |
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 |