unhelpfull error message when adding an new lambda function with same name #12554
Labels
bug
Something isn't working
functions
Issues tied to the functions category
good first issue
Good for newcomers
ops-errors
Operational theme: centralized error messaging
p4
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
while the error message is minimal, the message is not helpfull
Expected behavior
throw error message ->
Function with name <function-name> already present in the project. create the function with a new name
Reproduction steps
amplify add function
-> name astest
amplify add function
-> name astest
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: