mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +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?
|
return if Rails.env.test?
|
||||||
|
|
||||||
[:regex, :mx].each do |m|
|
[:regex, :mx].each do |m|
|
||||||
# r = Truemail.validate(@new_attributes[:email], with: m)
|
|
||||||
r = Actions::SimpleMailValidator.run(email: @new_attributes[:email], level: m)
|
r = Actions::SimpleMailValidator.run(email: @new_attributes[:email], level: m)
|
||||||
|
|
||||||
unless r.success
|
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
|
@error = true
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -371,6 +371,7 @@ en:
|
||||||
sim_error: 'SIM application error'
|
sim_error: 'SIM application error'
|
||||||
internal_error: 'Internal error'
|
internal_error: 'Internal error'
|
||||||
client_side_status_editing_error: 'Parameter value policy error. Client-side object status management not supported'
|
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
|
# DEPP
|
||||||
activemodel:
|
activemodel:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue