diff options
| author | Chris Morgan <me@chrismorgan.info> | 2022-04-19 13:02:20 +1000 |
|---|---|---|
| committer | Chris Morgan <me@chrismorgan.info> | 2022-04-19 13:02:20 +1000 |
| commit | 0255398ff74422155187ee2ee7b095fc16838107 (patch) | |
| tree | 41ada9c06d81866153835a808faa2b2780587801 /src/librustdoc/html/static/js/source-script.js | |
| parent | 7b5408d3fbfc4bcb7c5b2b2f08369156406dc03b (diff) | |
| download | rust-0255398ff74422155187ee2ee7b095fc16838107.tar.gz rust-0255398ff74422155187ee2ee7b095fc16838107.zip | |
Improve AddrParseError description
The existing description was incorrect for socket addresses, and misleading: users would see “invalid IP address syntax” and suppose they were supposed to provide an IP address rather than a socket address. I contemplated making it two variants (IP, socket), but realised we can do still better for the IPv4 and IPv6 types, so here it is as six. I contemplated more precise error descriptions (e.g. “invalid IPv6 socket address syntax: expected a decimal scope ID after %”), but that’s a more invasive change, and probably not worthwhile anyway.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions
