astra-cli icon indicating copy to clipboard operation
astra-cli copied to clipboard

[BUG] (nit) wording wrong in "create db" command with incompatible region/cloud

Open tatu-at-datastax opened this issue 1 year ago • 0 comments

Describe the bug

When trying to create a DB with incompatible cloud/region, error is:

[INFO]  You are using a non-production environment 'TEST' 
REGION OK
[ERROR] Region 'us-east-1' is valid for cloud 'aws'. (InvalidRegionException)
[ERROR] Try 'astra help <your_command>' to get help
[INFO]  Run astra db list-regions-serverless or astra streaming list-regions to list available regions.

where 'is valid should instead be is not valid (or is invalid).

To Reproduce

astra db create DB_NAME -c aws --region us-east-1  --config TEST

Expected behavior

Error message would indicate there is a problem; right now it's mildly confusing.

Screenshots

Desktop (please complete the following information): MacOS 12.7.4

Additional context

N/A

tatu-at-datastax avatar Apr 16 '24 16:04 tatu-at-datastax