Fix typo in logging results on error.