Skip to content

CxODEV-1874: always carry message on structured_error (4.3.0) - #221

Merged
ognjenkatic merged 1 commit into
masterfrom
CxODEV-1874-message-always-carried
Aug 26, 2026
Merged

CxODEV-1874: always carry message on structured_error (4.3.0)#221
ognjenkatic merged 1 commit into
masterfrom
CxODEV-1874-message-always-carried

Conversation

@ognjenkatic

Copy link
Copy Markdown
Collaborator

StructuredError.FromException no longer suppresses message when it equals reason — the payload always mirrors Exception.Message (which falls back to the reason), so consumers read message directly without a reason fallback of their own.

Payload impact: throwers that supply no distinct message now emit message equal to reason (previously omitted for byte-identical payloads). Additive-optional — older consumers ignore it; CurrentVersion stays 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 v3 as 3.9.0 in a sibling PR; SOE/ROE will pin 3.9.0.

🤖 Generated with Claude Code

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>
@ognjenkatic
ognjenkatic merged commit 754d48e into master Aug 26, 2026
1 check passed
@ognjenkatic
ognjenkatic deleted the CxODEV-1874-message-always-carried branch August 26, 2026 14:17
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