diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-17 11:56:50 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-08-18 16:47:26 -0500 |
commit | c29780086201b331091be3ba5df0653381cf0c2c (patch) | |
tree | 06d8ad068c2761905e3bf57bc649d956aa0cd9e9 /lib | |
parent | ff6f0ada3fc4c4dc89c9f2f0d947099c2d14ae88 (diff) | |
download | gitlab-ce-c29780086201b331091be3ba5df0653381cf0c2c.tar.gz |
Removed unnecessary service for user retrieval and improved API error message.
Diffstat (limited to 'lib')
-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 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) |