Yesterday I ended up writing an impromptu guide to Bash error handling on a PR, so I decided to polish it a bit and turn it into an actual post. The goal: whenever our release script encounters an error, send a notification to a Slack channel. We won’t look into the latter part in this post, as it was handled by some Ruby code using the slack-notifier gem. Instead we’ll look into what was necessary to make this work in Bash.