summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/ldap/dn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/auth/ldap/dn.rb')
-rw-r--r--lib/gitlab/auth/ldap/dn.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/auth/ldap/dn.rb b/lib/gitlab/auth/ldap/dn.rb
index 5df914aa367..732f0bec2a7 100644
--- a/lib/gitlab/auth/ldap/dn.rb
+++ b/lib/gitlab/auth/ldap/dn.rb
@@ -112,7 +112,7 @@ module Gitlab
yield key.string.strip, rstrip_except_escaped(value.string, dn_index)
key = StringIO.new
value = StringIO.new
- when '+' then raise(UnsupportedError, "Multivalued RDNs are not supported")
+ when '+' then raise(UnsupportedError, _("Multivalued RDNs are not supported"))
else value << char
end
when :value_normal_escape then
@@ -183,12 +183,12 @@ module Gitlab
value = StringIO.new
else raise(MalformedError, "Expected the end of an attribute value, but got \"#{char}\"")
end
- else raise "Fell out of state machine"
+ else raise _("Fell out of state machine")
end
end
# Last pair
- raise(MalformedError, 'DN string ended unexpectedly') unless
+ raise(MalformedError, _('DN string ended unexpectedly')) unless
[:value, :value_normal, :value_hexstring, :value_end].include? state
yield key.string.strip, rstrip_except_escaped(value.string, @dn.length)