diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-12 13:50:06 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-13 10:41:56 +0300 |
commit | 17a41547a038fd2ecb8b00499541861383927344 (patch) | |
tree | 426c9a33bc55ac5d77ab8c27ecde1f4e398c12fd /lib/gitlab/o_auth | |
parent | 9eb45ccd552c7c0a3c2104f01e86120d7c9f4060 (diff) |
Improve OAuth signup error message.
Diffstat (limited to 'lib/gitlab/o_auth')
-rw-r--r-- | lib/gitlab/o_auth/user.rb | 4 |
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 |