Skip to content

Commit

Permalink
Fixed handling of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Nov 21, 2010
1 parent 8e573b9 commit 42c1292
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/remit/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def request_id
def initialize(xml)
super

#TODO: How to differentiate between Error and Service Error
# TODO: How to differentiate between Error and Service Error properly? - pboling
# TODO: Is this ServiceError still relevant? - pboling
if is?(:Response) and has?(:Errors)
@errors = elements(:Errors).collect do |error|
@errors = elements('errors/error').collect do |error|
Error.new(error)
end
else
Expand Down

0 comments on commit 42c1292

Please sign in to comment.