Skip to content

Do not override message errors and use magic message or default instead#316

Merged
mullermp merged 2 commits into
decaffrom
no-error-override
Jul 17, 2025
Merged

Do not override message errors and use magic message or default instead#316
mullermp merged 2 commits into
decaffrom
no-error-override

Conversation

@mullermp
Copy link
Copy Markdown
Contributor

This change removes the 'message' override for generated service errors and instead relies on the modeled data message if present or the default of the class name. The parsing of message in protocol handlers appeared to be a legacy consideration before modeled error messages. Also fixes rpcv2 error parsing correctness.

Comment thread gems/smithy-client/lib/smithy-client/rpc_v2_cbor/error_handler.rb
Comment thread gems/smithy-client/lib/smithy-client/service_error.rb
Comment thread gems/smithy-client/lib/smithy-client/rpc_v2_cbor/error_handler.rb
@mullermp mullermp merged commit 8c06e25 into decaf Jul 17, 2025
15 checks passed
@mullermp mullermp deleted the no-error-override branch July 17, 2025 18:53
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.

3 participants