Output error about missing key *before* generating it.