Beginner question: What is the recommended way to check if an error occurred when using aws-api? Specifically the invoke function.
In the Readme it says
Barring client side exceptions, every operation on every AWS service returns a map. If the operation is successful, the map is in the shape described by (-> client aws/ops op :response).
But i'm not sure how to use that to check for errors in a nice way.(defn anomaly? [x]
(and (map? x) (contains? x :cognitect.anomalies/category)))Thanks 🙂