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

New error message for unescaped backslashes #202

Closed
wants to merge 1 commit into from
Closed

New error message for unescaped backslashes #202

wants to merge 1 commit into from

Conversation

axxelG
Copy link

@axxelG axxelG commented Nov 26, 2017

My proposal for a better error message

@arp242
Copy link
Collaborator

arp242 commented Jun 9, 2021

To be honest I think the current message expected four hexadecimal digits after '\u' but got %q instead is clear enough; maybe a little bit more usage guidance about escaping \ to \\ can be added, but I'd expect most people already know about this but just forgot in a copy/paste or the like?

Also, the way it's formatted now means there is no space between instead and Maybe, and the way it's phrased suggests what / is an alternative for \, so it certainly can't be merged as-is based on that.

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