From 1d2c98186014cedc01f04382d507a34a71008ab1 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Fri, 29 Jun 2012 03:52:20 -0700 Subject: return errors in json format --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/helpers.rb') 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 -- cgit v1.2.1