Fix wrong error logging (probably copy-paste error)

Check one error - log another error=)