aws-amplify / aws-amplify/amplify-cli
unhelpfull error message when adding an new lambda function with same name
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### How did you install the Amplify CLI?
_No response_
### If applicable, what version of Node.js are you using?
_No response_
### Amplify CLI Version
11.1.1
### What operating system are you using?
Mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
### Describe the bug
when adding a lambda function with a same name. The CLI throws the follow error message
```
is present in amplify-meta.json
```
while the error message is minimal, the message is not helpfull
### Expected behavior
throw error message -> `Function with name already present in the project. create the function with a new name`
### Reproduction steps
1. `amplify add function` -> name as `test`
2. `amplify add function` -> name as `test`
3. observe error
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
### Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
Contributor guide
Assessment
This issue has not been assessed yet.