path-to-regexp icon indicating copy to clipboard operation
path-to-regexp copied to clipboard

Improve error messages by including the path

Open simhnna opened this issue 8 months ago • 1 comments

Without the path users need to search all their code for a malformed path or debug to find the issue

Closes: #336

simhnna avatar Apr 07 '25 08:04 simhnna

Tried a couple of different places to include the path in the error message and I think prepending it is the easiest to read but if you'd like it somewhere else I'd update accordingly

simhnna avatar Apr 07 '25 08:04 simhnna

I've just merged https://github.com/pillarjs/path-to-regexp/pull/363 which adds the original path to the error.

blakeembrey avatar Aug 18 '25 18:08 blakeembrey