Skip to content

Commit

Permalink
feat(cli): add one line of backtrace to error output
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 31, 2017
1 parent c62d9b8 commit c2ede03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.until_true options = {}
return yield
rescue RescuableError => e
tries += 1
$stderr.puts "Error making request - #{e.message}, attempt #{tries} of #{max_tries}"
$stderr.puts "Error making request - #{e.class} #{e.message} #{e.backtrace.find{|l| l.include?('pact_broker-client')}}, attempt #{tries} of #{max_tries}"
raise e if max_tries == tries
sleep options
end
Expand Down

0 comments on commit c2ede03

Please sign in to comment.