adobe / adobe/aio-cli-plugin-app
unfriendly error when re-deploying
- Dominant language
- JavaScript
- Stars
- 28
- Forks
- 41
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 3
Description
**Describe the bug**
The error message is not clear
**To Reproduce**
run aio app deploy on a production workspace that has already been deployed+approved
**Expected behavior**
A clear error message stating the error condition, and how to fix it is shown
Instead it looks like the entire error object is output, which is not very friendly
```
test-stage-july22 AIO_CLI_ENV=stage aio app deploy
✔ Built 1 action(s) for 'dx/excshell/1'
✔ Building web assets for 'dx/excshell/1'
✔ Deployed 1 action(s) for 'dx/excshell/1'
✔ Deploying web assets for 'dx/excshell/1'
Your deployed actions:
web actions:
-> https://development-918-jessestagetest.dev.runtime.adobe.io/api/v1/web/dx-excshell-1/generic
To view your deployed application:
-> https://development-918-jessestagetest.dev.runtime.adobe.io/index.html
To view your deployed application in the Experience Cloud shell:
-> https://experience-stage.adobe.com/?devMode=true#/custom-apps/?localDevUrl=https://development-918-jessestagetest.dev.runtime.adobe.io/index.html
⠴ Updating Extension Points 'endpoints' in Workspace=Production... › Error: [CoreConsoleAPISDK:ERROR_UPDATE_WORKSPACE_ENDPOINTS] 400 - Bad Request
› ([{"template":"ERR_MSG_RETRY_OR_CONTACT","message":"{\"errors\":[{\"error_code\":\"1400\",\"message\":\"Problem occured - App in
› DRAFT|REJECTED|RETRACTED status can only be updated\"}]}"}])
⠦ Updating Extension Points 'endpoints' in Workspace=Production...%
```
Contributor guide
Assessment
This issue has not been assessed yet.