Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default error spans if none are provided #910

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

nichwch
Copy link
Collaborator

@nichwch nichwch commented Jul 11, 2024

No description provided.

Copy link

@nichwch nichwch changed the base branch from main to 0.5.0-dev July 11, 2024 18:36
Comment on lines +332 to +333
if isinstance(validation_result, FailResult):
if validation_result.error_spans is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collapse -

if isinstance(validation_result, FailResult) and validation_result.error_spans is None

@zsimjee zsimjee merged commit 603e861 into 0.5.0-dev Jul 12, 2024
@zsimjee zsimjee deleted the nichwch/default_error_spans branch July 12, 2024 19:02
@zsimjee zsimjee added this to the v0.5.0 release tracker milestone Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants