pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

feat: Rephrase the content type matching error message #382

Closed tienvx closed 4 months ago

tienvx commented 4 months ago

The old error message is a little bit confusing:

Expected data to have a content type of 'text/html' but was Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'

The updated one will be:

Failed to match data to have a content type of 'text/html': Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'