mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Add failsafe to handle_errors
This commit is contained in:
parent
12fd42b6f5
commit
d555f70631
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ module Epp::Common
|
|||
end
|
||||
|
||||
def handle_errors(obj=nil)
|
||||
@errors ||= []
|
||||
if obj
|
||||
obj.construct_epp_errors
|
||||
@errors += obj.errors[:epp_errors]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue