Add failsafe to handle_errors

This commit is contained in:
Martin Lensment 2014-08-12 10:27:31 +03:00
parent 12fd42b6f5
commit d555f70631

View file

@ -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]