diff --git a/packages/sui-test-contract/bin/sui-test-contract-publish.js b/packages/sui-test-contract/bin/sui-test-contract-publish.js index 4a3d83fcb..b71a271b1 100644 --- a/packages/sui-test-contract/bin/sui-test-contract-publish.js +++ b/packages/sui-test-contract/bin/sui-test-contract-publish.js @@ -37,6 +37,6 @@ new Publisher(options) console.log(`Pact contract for consumer version ${options.consumerVersion} published!`) console.log(`Head over to ${brokerUrl} and login with to see your published contracts.`) }) - .catch(e => { - console.log('Pact contract publishing failed: ', e) + .catch(error => { + throw new Error(`Pact contract publishing failed: ${error}`) })