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

review: fix: clearer message when cannot compare fragments #4795

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

gtoison
Copy link
Contributor

@gtoison gtoison commented Jul 10, 2022

The error message Cannot compare this: [46, 115] with other: ["55", "185"] is slightly unclear because of the double quotes for the other element. This might suggest that the types are different while the issue is really with the start and end positions.
This PR removes the unnecessary double quotes.

The start and source of the 'other' fragment are between double quotes
while they are not for 'this'
@MartinWitt
Copy link
Collaborator

Good catch, will merge.

@MartinWitt MartinWitt merged commit 0464ff3 into INRIA:master Jul 11, 2022
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