Skip to content

fix: drop doubled action prefix in usage decoder errors - #44

Merged
chmmou merged 1 commit into
mainfrom
fix/usage-decoder-error-prefix
May 4, 2026
Merged

fix: drop doubled action prefix in usage decoder errors#44
chmmou merged 1 commit into
mainfrom
fix/usage-decoder-error-prefix

Conversation

@chmmou

@chmmou chmmou commented May 4, 2026

Copy link
Copy Markdown
Owner

Summary

DecodeSpace / DecodeSpaceUsage / DecodeTraffic prefixed inner errors with the action name; the Client wrappers prepend the action layer too, producing usage: get_space: usage: get_space: …. Strip the action segment from decoder messages so they read usage: … only — same pattern as account / server.

Found during the post-merge review of #43.

DecodeSpace / DecodeSpaceUsage / DecodeTraffic prefixed inner errors
with the KAS action name (`usage: get_space: ReturnInfo[%d] …`).
The Client wrappers already wrap with `usage: get_<action>: %w`, so
the resulting error string repeated the action twice
(`usage: get_space: usage: get_space: …`).

Drop the action segment from the decoder messages so they read
`usage: …` only, matching the established pattern in the `account`
and `server` decoders where the action layer is owned exclusively by
the client wrapper.

Found in the post-merge review of the usage read-module slice.
@chmmou
chmmou merged commit 5a4af95 into main May 4, 2026
1 check passed
@chmmou
chmmou deleted the fix/usage-decoder-error-prefix branch May 4, 2026 17:46
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.

1 participant