From c29780086201b331091be3ba5df0653381cf0c2c Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Wed, 17 Aug 2016 11:56:50 -0500 Subject: Removed unnecessary service for user retrieval and improved API error message. --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api') diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index bbd647684a4..3e906f6f929 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -276,7 +276,7 @@ module API end def render_2fa_error! - render_api_error!('401 You have 2FA enabled. Please use a personal access token to access the API', 401) + render_api_error!('401 Unauthorized. You have 2FA enabled. Please use a personal access token to access the API', 401) end def render_api_error!(message, status) -- cgit v1.2.1