Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatAlgo committed Jul 7, 2023
1 parent 589c131 commit 7245af7
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:", string)
raise ValueError(f"urls must start with a leading slash: {string!r}")
self.rule = string
self.is_leaf = not string.endswith("/")
self.is_branch = string.endswith("/")
Expand Down

0 comments on commit 7245af7

Please sign in to comment.