# Exercise: Make It Fail Well

Exercise: Make It Fail Well: Exercise: Make It Fail Well.

Updated: November 10, 2026

1. [Exercise: Make It Fail Well](https://www.ask-codey.com/lessons/exercise-bash-make-it-fail-well) (Journeyman): Turn a photo mover that works only on a good day into one you can trust: strict mode, a die function, a usage message, errors on standard error, exit codes that mean something, cleanup with trap, a bug found with bash -x, and two bats tests of your own, while a check script runs it job by job.

Source: https://www.ask-codey.com/courses/bash-in-depth/topics/exercise-bash-make-it-fail-well
