opts: get_errors function instead of check_errors.