diff --git a/lib/pact/provider/help/write.rb b/lib/pact/provider/help/write.rb index e32575ab..0931c4dd 100644 --- a/lib/pact/provider/help/write.rb +++ b/lib/pact/provider/help/write.rb @@ -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