Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit adea1de

Browse files
committed
adjust rescue
1 parent e1be72a commit adea1de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/moip_transparente/checkout.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def get_token(invoice)
170170
response = post_data(doc.to_s(:encoding => XML::Encoding::ISO_8859_1))
171171
parser = XML::Parser.string(response)
172172
dom = parser.parse
173-
rescue Exception => e
173+
rescue LibXML::XML::Error => e
174+
puts response.inspect
175+
puts parser.inspect
174176
Rails.logger.info response.inspect
175177
Rails.logger.info parser.inspect
176178
end

0 commit comments

Comments
 (0)