-
-
Notifications
You must be signed in to change notification settings - Fork 415
Improve error message when parsing fails #336
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
Comments
|
For 1, I guess the problem is that the error message gives no indication on where the error occurred. I have the same error stating something about 'missing parameter name at 2' without any details. |
Without the path users need to search all their code for a malformed path or debug to find the issue Closes: pillarjs#336
I'm sorry I completely forgot about that. I created two merge requests that address points 1 and 2 |
I have created a simple version of this that shows you the problematic url. pull request #358 |
I got error messages like
TypeError: Missing parameter name at 3: https://git.new/pathToRegexpError
and I was wondering how that weird url made it's way into my codeTwo suggestions:
lexer()
gets the whole error, so maybe it would be good to wrap those errors inparse()
and include the whole string?For more information about regexp paths check https://...
If you're ok with me changing 1 and 2, I'm happy to prepare a pull request
The text was updated successfully, but these errors were encountered: