Skip to content

Commit

Permalink
chg: print errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Skulli committed Jun 27, 2024
1 parent 26ed3a3 commit f316a5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/secretariat/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def to_xml(version: 1, skip_validation: false, mode: :zugferd)
end

if !skip_validation && !valid?
puts errors.inspect
raise ValidationError.new("Invoice is invalid", errors)
end

Expand Down

0 comments on commit f316a5e

Please sign in to comment.