Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error messaging for pscale branch create #954

Open
Vinlock opened this issue Jan 9, 2025 · 0 comments
Open

Confusing error messaging for pscale branch create #954

Vinlock opened this issue Jan 9, 2025 · 0 comments

Comments

@Vinlock
Copy link

Vinlock commented Jan 9, 2025

I am running the following:

DATABASE_NAME="core"
BRANCH_NAME="pr-7"
PLANETSCALE_ORG="dunbar-prod"
pscale branch create ${DATABASE_NAME} ${BRANCH_NAME} --from production --wait --org ${PLANETSCALE_ORG}

I get this error:

Creating branch from core...
Error: source database core does not exist in organization dunbar-prod

This is confusing because the database does exist but the reason I'm getting the not found error is because for the --from production flag in the pscale branch create command.

It would be nice if the error was clearer and said:

Creating branch from production branch on database core...
Error: source database branch production does not exist in database core on organization dunbar-prod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant