Skip to content

Commit

Permalink
support.endpoint: clearer error message for invalid spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Mar 6, 2024
1 parent 4a3f811 commit 1c816f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/support/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def endpoint(spec):
r":(\d+)$", spec)
if m: return (m[1], m[3] or m[4] or m[5] if m[2] is None else "localhost", int(m[6]))

raise argparse.ArgumentTypeError("invalid format")
raise argparse.ArgumentTypeError(f"invalid endpoint: {spec!r}")


class ServerEndpoint(aobject, asyncio.Protocol):
Expand Down

0 comments on commit 1c816f7

Please sign in to comment.