Place it immediately after the mistake appears on screen, once the audience has seen what went wrong. Follow it with Sad Violin to exaggerate the moment, or let Nelson's Ha-Ha answer it when friends are laughing at the fail.