diff --git a/app/controllers/epp/contacts_controller.rb b/app/controllers/epp/contacts_controller.rb index 582a621ff..7e2eb0b33 100644 --- a/app/controllers/epp/contacts_controller.rb +++ b/app/controllers/epp/contacts_controller.rb @@ -128,7 +128,7 @@ class Epp::ContactsController < EppController return true if params[:parsed_frame].css('postalInfo org').text.blank? epp_errors << { code: '2306', - msg: I18n.t(:parameter_value_policy_error) + msg: "#{I18n.t(:parameter_value_policy_error)}: postalInfo > org [org]" } end end diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index 0308575fc..d7786f7ee 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -147,7 +147,7 @@ describe 'EPP Contact', epp: true do it 'should return parameter value policy errror' do response = create_request({ postalInfo: { org: { value: 'should not save' } } }) - response[:msg].should == 'Parameter value policy error' + response[:msg].should == 'Parameter value policy error: postalInfo > org [org]' response[:result_code].should == '2306' Contact.last.org_name.should == nil @@ -282,7 +282,7 @@ describe 'EPP Contact', epp: true do postalInfo: { org: { value: 'should not save' } } } }) - response[:msg].should == 'Parameter value policy error' + response[:msg].should == 'Parameter value policy error: postalInfo > org [org]' response[:result_code].should == '2306' Contact.find_by(code: 'sh8013').org_name.should == nil