We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb18f0 commit e4342f0Copy full SHA for e4342f0
lib/pact_broker/api/renderers/html_pact_renderer.rb
@@ -145,9 +145,9 @@ def tags
145
146
def markdown
147
Pact::Doc::Markdown::ConsumerContractRenderer.call consumer_contract
148
- rescue NotAPactError
+ rescue StandardError
149
heading = "### A contract between #{@pact.consumer.name} and #{@pact.provider.name}"
150
- warning = "_Note: this contract could not be parsed to a Pact, showing raw content instead._"
+ warning = "_Note: this contract could not be parsed to a v1 or v2 Pact, showing raw content instead._"
151
pretty_json = JSON.pretty_generate(@pact.content_hash)
152
"#{heading}\n#{warning}\n```json\n#{pretty_json}\n```\n"
153
end
0 commit comments