Pass changed code to the fail handler.

Instead of the uncovered block of code, which can be a bit confusing.