Skip to content

Comments

Improve crash messages for fixes that don't apply#5533

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_873381734
Feb 24, 2026
Merged

Improve crash messages for fixes that don't apply#5533
copybara-service[bot] merged 1 commit intomasterfrom
test_873381734

Conversation

@copybara-service
Copy link
Contributor

Improve crash messages for fixes that don't apply

If a fix refers to an AST node without an end position (like var), report a crash at the start position for the fix, instead of at the top level of the compilation unit.

This will improve failure messages for cases like #5522

@copybara-service copybara-service bot force-pushed the test_873381734 branch 3 times, most recently from df1184f to 4be3e55 Compare February 24, 2026 16:41
If a fix refers to an AST node without an end position (like `var`), report a crash at the start position for the fix, instead of at the top level of the compilation unit.

This will improve failure messages for cases like #5522

PiperOrigin-RevId: 874646657
@copybara-service copybara-service bot merged commit ab81681 into master Feb 24, 2026
@copybara-service copybara-service bot deleted the test_873381734 branch February 24, 2026 17:21
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.

1 participant