Skip to content

Commit

Permalink
fix(verification): pass validation error message on instead of swallo…
Browse files Browse the repository at this point in the history
…wing it
  • Loading branch information
thombergs committed Oct 15, 2017
1 parent f5387a0 commit ca0b052
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pact-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ module.exports = (opts) => {
return mockService.verify()
.then(() => mockService.removeInteractions())
.catch(e => {
// Properly format the error
console.error('')
console.error('Pact verification failed!')
console.error(e)

throw new Error('Pact verification failed - expected interactions did not match actual.')
throw new Error(e)
})
},
/**
Expand Down

0 comments on commit ca0b052

Please sign in to comment.