Police went undercover to catch criminals. Their failure was inspiring.