aws-beam / aws-codegen

Code generator for AWS clients in Erlang and Elixir.
Other
53 stars 49 forks source link

Error handling: avoid having to figure path to error message and return the whole error #23

Closed jfacorro closed 4 years ago

jfacorro commented 4 years ago

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.