planetscale / cli

The CLI for PlanetScale Database
https://planetscale.com/cli
Apache License 2.0
604 stars 51 forks source link

Improve error message when using `service-token` with a ServiceToken #758

Closed mscoutermarsh closed 1 year ago

mscoutermarsh commented 1 year ago

Service tokens do not have access to any of the service token endpoints (so that they cannot modify themselves or others)

This improves the error message. Previously it would say "org does not exist".

Context: https://github.com/planetscale/discussion/discussions/565