This repository has been archived by the owner on Oct 20, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Erlang 19's Dialyzer results for erlcloud_ddb2
Make it possible for Dialyzer (Erlang 19) to conclude generic {error, term()} errors can be returned on misc. erlcloud_ddb2 calls. If we don't explicitly declare that #ddb2_error{} fields might be undefined, Dialyzer will mark the DDBError binding initialization on erlcloud_ddb_impl:request_and_retry/4 (line 198 as of 988528d) as invalid due to all the missing fields. This, in its turn, invalidates analysis of the remaining pipeline of result processing, which in its turn blinds Dialyzer to the fact that errors other than "{'socket_error',_}" and "{'http_error',_,_,_}}" can and will be returned (e.g. conditional check failures.)
- Loading branch information