Add epp errors support to bulk renew

This commit is contained in:
Alex Sherman 2021-05-05 13:36:13 +05:00
parent 0f812d0b15
commit 79351d50d9
8 changed files with 42 additions and 22 deletions

View file

@ -50,7 +50,9 @@ module Repp
super
if @new_contact == @current_contact
@epp_errors << { code: 2304, msg: 'New contact must be different from current' }
@epp_errors.add(:epp_errors,
msg: 'New contact must be different from current',
code: '2304')
end
return handle_errors if @epp_errors.any?