CxODEV-1874: always carry message on structured_error (4.3.0) - #221
Merged
Conversation
FromException no longer suppresses message when it equals reason - consumers read message directly without needing a reason fallback of their own. Payloads from message-less throwers now include message (equal to reason); the field remains additive-optional, version stays 1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
StructuredError.FromExceptionno longer suppressesmessagewhen it equalsreason— the payload always mirrorsException.Message(which falls back to the reason), so consumers readmessagedirectly without a reason fallback of their own.Payload impact: throwers that supply no distinct message now emit
messageequal toreason(previously omitted for byte-identical payloads). Additive-optional — older consumers ignore it;CurrentVersionstays 1.Versions bumped 4.2.0 → 4.3.0 (all five packages). Tests updated: the two omission guards now pin the always-carried behavior; 62/62 green.
Same change lands on
v3as 3.9.0 in a sibling PR; SOE/ROE will pin 3.9.0.🤖 Generated with Claude Code