lib/intacctrb/attachment.rb in intacctrb-0.4.3 vs lib/intacctrb/attachment.rb in intacctrb-0.4.4

- old
+ new

@@ -12,10 +12,14 @@ attachment_xml xml } } end - successful? + if !successful? + raise IntacctRB::Exceptions::Attachment.new(response.at('//error//description2')) + end + + object.intacct_id end def get_date_at(xpath, object) year = object.at("#{xpath}/year").content month = object.at("#{xpath}/month").content