Closed ChrisMuir closed 6 years ago
Error messages that are related to invalid input args (and are NOT related to status codes) now look like this:
ct_search(reporters = "Canada",
partners = "Germany",
trade_direction = "all",
commod_codes = "invalid_codes")
#> Error: API request failed. Err msg from Comtrade:
#> invalid_codes is an invalid commodity code.
Here is an example:
This error message is related to an invalid input for arg
type
, and has nothing to do with request status codes. I think it makes sense to remove the references to status codes in error messages when the failure had nothing to do with the status code, and the status code is 200.This issue first came up in #5