cli
cli copied to clipboard
Fix access command API error handling
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.