Refactor EPP Errors once again

This commit is contained in:
Martin Lensment 2014-10-09 17:56:07 +03:00
parent 6ab58767c3
commit a740ed34f3
7 changed files with 74 additions and 32 deletions

View file

@ -41,7 +41,7 @@ module Epp::Common
def handle_errors(obj = nil)
@errors ||= []
if obj
obj.construct_epp_errors
obj.generate_epp_errors
@errors += obj.errors[:epp_errors]
end