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

Change the error message to make it start at the as keyword #99

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

GuillaumeGomez
Copy link
Contributor

Follow-up of #63.

I thought about the case where there is a big expression before the as keyword. In this case, it's really not clear when we show everything what's actually wrong. It renders better when we make it start at the as keyword so we still keep the keyword to give context but remove the "noise" coming from the expression so the user can see better what's going on.

If it makes sense?

I added a test case to illustrate it if you want to compare. ;)

Copy link
Collaborator

@Kijewski Kijewski left a comment

Choose a reason for hiding this comment

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

Yes, makes sense. 👍

@Kijewski Kijewski merged commit 85fed57 into rinja-rs:master Jul 28, 2024
17 checks passed
@GuillaumeGomez GuillaumeGomez deleted the small-improvement branch July 28, 2024 20:25
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