cli icon indicating copy to clipboard operation
cli copied to clipboard

Fix access command API error handling

Open runesoerensen opened this issue 1 year ago • 0 comments

The error is an HerokuAPIError instance, so we need to access the status code accordingly.

The current behavior causes heroku access --app <app> to fail when the app is owned by a team, and the user doesn't have have access to the https://api.heroku.com/teams/<team>/members endpoint.

runesoerensen avatar Oct 24 '24 00:10 runesoerensen