Tweak error logging - fix variable name mistake.