Whenever a call results in an error the path the error message varies depending on the AWS service and the type of error. The path is case-sensitive and some errors contain the field message instead of Message.
It is therefore a simpler approach to just return the whole (decoded) error information to the caller.
Whenever a call results in an error the path the error message varies depending on the AWS service and the type of error. The path is case-sensitive and some errors contain the field
message
instead ofMessage
.It is therefore a simpler approach to just return the whole (decoded) error information to the caller.