tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
224 stars 37 forks source link

`db create` checks for auth too late #176

Closed penberg closed 1 year ago

penberg commented 1 year ago

If am not authenticated, it spits this thing out:

penberg@vonneumann ~ % turso db create
Warning: we could not determine the deployment region closest to your physical location.
The region is defaulting to Amsterdam (ams). Consider specifying a region to select a better option using

    turso db create --region [region].

Run turso db regions for a list of supported regions.
Error: could not create database concrete-anole: failed to create database: 401 Unauthorized - please login with turso auth login
haaawk commented 1 year ago

Here's what's printed on main:

% ./turso db create test2
Error: could not create database test2: failed to create database: 401 Unauthorized - please login with turso auth login

I think we can close this issue. @penberg please reopen if you feel like the issue is still valid.