Place it at the end of a scene where a good plan starts to fall apart, then follow it with a Fail Sound Meme as the consequences hit, and an It Was At This Moment He Knew when the character realises the mistake.