When redeploying an already existing deployment using metacall-deploy, the CLI returns a generic HTTP error message that does not explain the real problem.
Steps to reproduce
- Deploy an application:
node dist/index.js --dev --workdir path-to-app
- Run the same command again:
node dist/index.js --dev --workdir path-to-app
Current behavior
The CLI outputs: Error: Request failed with status code 400
This message does not indicate the actual cause of the error.
Actual reason
The deployment already exists.
Expected behavior
The CLI should return a more descriptive error message, for example:
Deployment "test-app" already exists. Use --force to redeploy or --delete to remove it.
When redeploying an already existing deployment using metacall-deploy, the CLI returns a generic HTTP error message that does not explain the real problem.
Steps to reproduce
node dist/index.js --dev --workdir path-to-appnode dist/index.js --dev --workdir path-to-appCurrent behavior
The CLI outputs:
Error: Request failed with status code 400This message does not indicate the actual cause of the error.
Actual reason
The deployment already exists.
Expected behavior
The CLI should return a more descriptive error message, for example:
Deployment "test-app" already exists. Use --force to redeploy or --delete to remove it.