mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
changed error message
This commit is contained in:
parent
41feb7c601
commit
38e823b0dd
2 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,10 @@ module Actions
|
|||
return if Rails.env.test?
|
||||
|
||||
[:regex, :mx].each do |m|
|
||||
# r = Truemail.validate(@new_attributes[:email], with: m)
|
||||
r = Actions::SimpleMailValidator.run(email: @new_attributes[:email], level: m)
|
||||
|
||||
unless r.success
|
||||
contact.add_epp_error('2306', nil, r.errors, I18n.t(:client_side_status_editing_error))
|
||||
contact.add_epp_error('2005', nil, r.errors, I18n.t(:parameter_value_syntax_error))
|
||||
@error = true
|
||||
return
|
||||
end
|
||||
|
|
|
@ -371,6 +371,7 @@ en:
|
|||
sim_error: 'SIM application error'
|
||||
internal_error: 'Internal error'
|
||||
client_side_status_editing_error: 'Parameter value policy error. Client-side object status management not supported'
|
||||
parameter_value_syntax_error: 'Parameter value syntax error: '
|
||||
|
||||
# DEPP
|
||||
activemodel:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue