Skip to content

Commit f1095a2

Browse files
authored
Merge pull request #1672 from SUI-Components/make-execution-halt-on-publish-error
feat(packages/sui-test-contract): make jobs execution halt on contract publish errors
2 parents 869dfb8 + d26803b commit f1095a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sui-test-contract/bin/sui-test-contract-publish.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ new Publisher(options)
3737
console.log(`Pact contract for consumer version ${options.consumerVersion} published!`)
3838
console.log(`Head over to ${brokerUrl} and login with to see your published contracts.`)
3939
})
40-
.catch(e => {
41-
console.log('Pact contract publishing failed: ', e)
40+
.catch(error => {
41+
throw new Error(`Pact contract publishing failed: ${error}`)
4242
})

0 commit comments

Comments
 (0)