Handle and parse errors from the API calls
Usage
api_error_catch(bodylist, call = rlang::caller_env(), .errorhandling = "stop")Arguments
- bodylist
list returned by API
- call
see
rlang::abort(); passes calling environment for clearer messages- .errorhandling
as in
foreach::foreach()- passed in here to handle simplyaborting vs doing something with the error and continuing