Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add awsQueryCompatible error code translation support #4597

Merged
merged 14 commits into from
Dec 28, 2022
Prev Previous commit
Next Next commit
Review comments
  • Loading branch information
eddy-aws committed Nov 19, 2022
commit 0622cb0943b47cb8c20e6cb22f3c852e63faba58
4 changes: 2 additions & 2 deletions private/protocol/jsonrpc/unmarshal_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata

func NewUnmarshalTypedErrorWithOptions(exceptions map[string]func(protocol.ResponseMetadata) error, optFns ...func(*UnmarshalTypedError)) *UnmarshalTypedError {
err := NewUnmarshalTypedError(exceptions)
if len(optFns) == 1 {
optFns[0](err)
for _, fn := range optFns {
fn(err)
}
return err
}
Expand Down