Skip to content

libnetwork: remove ErrNoSuchEndpoint, ErrInvalidID, ErrInvalidName#49344

Merged
thaJeztah merged 3 commits intomoby:masterfrom
thaJeztah:libnetwork_use_errdefs_step4
Jan 27, 2025
Merged

libnetwork: remove ErrNoSuchEndpoint, ErrInvalidID, ErrInvalidName#49344
thaJeztah merged 3 commits intomoby:masterfrom
thaJeztah:libnetwork_use_errdefs_step4

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

libnetwork: remove ErrNoSuchEndpoint

It was only returned in 1 place, and not used any different than
a "notfound" error, so let's use a standard errdefs.ErrNotFound

libnetwork: remove ErrInvalidID

It was only returned in a few places, and not used any different than
a "invalid parameter" error, so let's use a standard errdefs.ErrInvalidParameter

libnetwork: remove ErrInvalidName

It was only returned in a few places, and not used any different than
a "invalid parameter" error, so let's use a standard errdefs.ErrInvalidParameter

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

It was only returned in 1 place, and not used any different than
a "notfound" error, so let's use a standard errdefs.ErrNotFound

Signed-off-by: Sebastiaan van Stijn <[email protected]>
It was only returned in a few places, and not used any different than
a "invalid parameter" error, so let's use a standard errdefs.ErrInvalidParameter

Signed-off-by: Sebastiaan van Stijn <[email protected]>
It was only returned in a few places, and not used any different than
a "invalid parameter" error, so let's use a standard errdefs.ErrInvalidParameter

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review area/networking Networking kind/refactor PR's that refactor, or clean-up code labels Jan 27, 2025
@thaJeztah thaJeztah self-assigned this Jan 27, 2025
@thaJeztah thaJeztah added this to the 28.0.0 milestone Jan 27, 2025
@thaJeztah thaJeztah merged commit 47414e2 into moby:master Jan 27, 2025
@thaJeztah thaJeztah deleted the libnetwork_use_errdefs_step4 branch January 27, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/networking Networking kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants