Skip to content

Commit

Permalink
feat: catch and log error during help text generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 21, 2021
1 parent 6e048db commit 182a7cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pact/provider/help/write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def initialize pact_sources, reports_dir
def call
clean_reports_dir
write
rescue StandardError => e
Pact.configuration.error_stream.puts("ERROR: Error generating help output - #{e.class} #{e.message} \n" + e.backtrace.join("\n"))
end

private
Expand Down

0 comments on commit 182a7cd

Please sign in to comment.