Skip to content

Commit

Permalink
fix: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatAlgo authored and davidism committed Aug 13, 2023
1 parent 1886322 commit a0f4bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/werkzeug/routing/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def __init__(
websocket: bool = False,
) -> None:
if not string.startswith("/"):
raise ValueError("urls must start with a leading slash")
raise ValueError("urls must start with a leading slash:", string)
self.rule = string
self.is_leaf = not string.endswith("/")
self.is_branch = string.endswith("/")
Expand Down

0 comments on commit a0f4bf4

Please sign in to comment.