r-lib / gargle

Infrastructure for calling Google APIs from R, including auth
https://gargle.r-lib.org/
Other
113 stars 33 forks source link

General modernization of some errors; better handling of HTML error #255

Closed jennybc closed 1 year ago

jennybc commented 1 year ago

Start to use more modern features of our error-throwing tools. Do a better job of surfacing error content that comes as HTML, which is gross, but happens.

Fixes #254

(This only deals with errors in the response processing domain. Wiring call into the auth part of gargle would be harder and have less payoff, since the vast majority of usage happens via token_fetch() which silently swallows errors. So it's not clear if I will ever do that.)