diff options
author | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-05-19 15:57:45 +0300 |
---|---|---|
committer | Pavlos Emm. Katsoulakis <paul@netdata.rocks> | 2019-05-19 15:57:45 +0300 |
commit | c1b54fa6d248adcb6c0fdf9de3309b480a9be994 (patch) | |
tree | 0617aebaa9a5125437310a61127f4b6d3fd523df | |
parent | d5ffdf49f493208b69e672f24d389ccfc2ef3371 (diff) |
netdata/packaging/ci: Make slack lib fail loud when parameters are broken
-rwxr-xr-x | tests/installer/slack.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/installer/slack.sh b/tests/installer/slack.sh index 0549aa8889..3c5f94a453 100755 --- a/tests/installer/slack.sh +++ b/tests/installer/slack.sh @@ -50,5 +50,9 @@ post_message() { echo "Sending ${POST_MESSAGE}" curl -X POST --data-urlencode "payload=${POST_MESSAGE}" "${SLACK_NOTIFY_WEBHOOK_URL}" ;; + *) + echo "Unrecognized message type \"$TYPE\" was given" + return 1 + ;; esac } |