Skip to content

Improve documentation and debugging context for NetStackSendError::WrongPortKind.#157

Merged
jamesmunns merged 1 commit intojamesmunns:mainfrom
MakerPnP:improve-wrong-port-kind-1
Nov 9, 2025
Merged

Improve documentation and debugging context for NetStackSendError::WrongPortKind.#157
jamesmunns merged 1 commit intojamesmunns:mainfrom
MakerPnP:improve-wrong-port-kind-1

Conversation

@hydra
Copy link
Copy Markdown
Collaborator

@hydra hydra commented Nov 6, 2025

Adds debugging and gives some hints in the documentation.

See code changes.

if skt_ref.attrs.kind != hdr.kind {
return Err(NetStackSendError::WrongPortKind);
return Err(NetStackSendError::WrongPortKind {
expected: skt_ref.attrs.kind,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we want to call these something like "socket_kind" and "packet_kind", to make it more clear which is which?

hydra added a commit to MakerPnP/machine that referenced this pull request Nov 8, 2025
@jamesmunns jamesmunns merged commit eaa8375 into jamesmunns:main Nov 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants