planetscale / cli

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

Improve `switch` error message when DB does not exist in org #742

Closed mscoutermarsh closed 1 year ago

mscoutermarsh commented 1 year ago

Fixes: https://github.com/planetscale/cli/issues/741

Found that the problem with this one was: when trying to create the branch, it was attempting to create within the wrong org. Which returned the NotFound error.

Now when that happens, we return a better error message.