Skip to content

fix(deploy): improve error message when deployment already exists#219

Open
vikram-2101 wants to merge 1 commit intometacall:masterfrom
vikram-2101:fix/clearer-redeploy-error
Open

fix(deploy): improve error message when deployment already exists#219
vikram-2101 wants to merge 1 commit intometacall:masterfrom
vikram-2101:fix/clearer-redeploy-error

Conversation

@vikram-2101
Copy link
Contributor

Currently the CLI shows a generic "Request failed with status code 400"
when redeploying an existing deployment.

This change checks the API response indicating that the deployment
already exists and displays a clearer message to the user.

Example:

Before:
Error: Request failed with status code 400

After:

Deployment "<name>" already exists.
Use --force to redeploy or --delete to remove it.

@viferga
Copy link
Member

viferga commented Mar 14, 2026

It has no tests, I won't merge it.

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

Successfully merging this pull request may close these issues.

2 participants