HubSpot / hubspot-cli

A CLI for HubSpot
https://developers.hubspot.com
Other
154 stars 60 forks source link

Supporting a custom override for missing scope errors #1128

Closed brandenrodgers closed 1 month ago

brandenrodgers commented 2 months ago

Description and Context

The main focus of this was to support overriding missing scope errors. The typical errors returned by the BE aren't very useful, so this makes it easy for us to provide better messaging to the end user when they attempt to make a request that fails with a 403 status and MISSING_SCOPE category.

I removed all of the places where we were passing in projectName to the api error context because we don't need that anymore (I'm removing it here).

I also cleaned up a few things:

Screenshots

TODO

Who to Notify