Prevent duplication of error messages