From ca0b0525e9eff22628f115381f6fc053f6e6184d Mon Sep 17 00:00:00 2001 From: Tom Hombergs Date: Sun, 15 Oct 2017 09:13:28 +0200 Subject: [PATCH] fix(verification): pass validation error message on instead of swallowing it --- src/pact-web.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pact-web.js b/src/pact-web.js index 35f8ce655..559624b58 100644 --- a/src/pact-web.js +++ b/src/pact-web.js @@ -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) }) }, /**