]> Cypherpunks repositories - gostls13.git/commit
net/netip: introduce parsePrefixError for better error handling
authoraimuz <mr.imuz@gmail.com>
Tue, 20 Feb 2024 02:58:00 +0000 (02:58 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 26 Feb 2024 20:48:08 +0000 (20:48 +0000)
commit080fc4cf87c4de796b2c5dc14eb9b94f6ec7a35a
tree135f6b2e315c168b66cf68fcf5f04007c128ed99
parentf63faf3689e215ef1f23d26316b2dae910df9f20
net/netip: introduce parsePrefixError for better error handling

Refactor ParsePrefix to return a parsePrefixError containing the input
string and a detailed message on failure, improving error context and
maintaining consistent error formatting within the netip package.

Change-Id: I8d9fb2f833b0f96f43a14622e66e225b54440410
GitHub-Last-Rev: e17bec3afa4efd6c52463bb93e8f694b42c0c2b7
GitHub-Pull-Request: golang/go#65798
Reviewed-on: https://go-review.googlesource.com/c/go/+/565275
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/netip/netip.go