error messages in logic