summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-12 12:50:06 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-13 09:41:56 +0200
commit17a41547a038fd2ecb8b00499541861383927344 (patch)
tree426c9a33bc55ac5d77ab8c27ecde1f4e398c12fd /lib
parent9eb45ccd552c7c0a3c2104f01e86120d7c9f4060 (diff)
downloadgitlab-ce-17a41547a038fd2ecb8b00499541861383927344.tar.gz
Improve OAuth signup error message.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/o_auth/user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/o_auth/user.rb b/lib/gitlab/o_auth/user.rb
index 2f5c217d764..ba5caed6131 100644
--- a/lib/gitlab/o_auth/user.rb
+++ b/lib/gitlab/o_auth/user.rb
@@ -5,7 +5,7 @@
#
module Gitlab
module OAuth
- class ForbiddenAction < StandardError; end
+ class SignupDisabledError < StandardError; end
class User
attr_accessor :auth_hash, :gl_user
@@ -99,7 +99,7 @@ module Gitlab
end
def unauthorized_to_create
- raise ForbiddenAction.new("Unauthorized to create user, signup disabled for #{auth_hash.provider}")
+ raise SignupDisabledError
end
end
end