Skip to content

Commit a0f4bf4

Browse files
TheGreatAlgodavidism
authored andcommitted
fix: improve error message
1 parent 1886322 commit a0f4bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/werkzeug/routing/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def __init__(
454454
websocket: bool = False,
455455
) -> None:
456456
if not string.startswith("/"):
457-
raise ValueError("urls must start with a leading slash")
457+
raise ValueError("urls must start with a leading slash:", string)
458458
self.rule = string
459459
self.is_leaf = not string.endswith("/")
460460
self.is_branch = string.endswith("/")

0 commit comments

Comments
 (0)