Skip to content

Commit

Permalink
fix: Added immediate logging of api exceptions
Browse files Browse the repository at this point in the history
Should help in debugging #19 and similar issues in the future.
  • Loading branch information
hannesrabo authored Oct 31, 2019
1 parent d3df2b4 commit 5679b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function postMessage(message, logger, slackWebhook) {
.then(res => res.text())
.then(text => {
if (text !== 'ok') {
logger.log('JSON message format invalid')
logger.log('JSON message format invalid: ' + text)
throw new SemanticReleaseError(
new Error().stdout,
'INVALID SLACK COMMAND: ' + text
Expand Down

0 comments on commit 5679b4e

Please sign in to comment.