lib/intacctrb/base.rb in intacctrb-0.8.1 vs lib/intacctrb/base.rb in intacctrb-0.8.2

- old
+ new

@@ -104,10 +104,10 @@ if successful? data = OpenStruct.new({result: true, intacct_id: object.intacct_id, object: response, data: data}) else data = OpenStruct.new({result: false, intacct_id: object.intacct_id}) - data.errors = {} + data.errors = [] response.xpath("//result/errormessage/error").each do |error| data.errors << { code: error.at("//errorno").content, title: error.at("//description").content, description: error.at("//description2").content