elliot-tang / pe

0 stars 0 forks source link

[Notes Commands] Clarity of Error Messages for Notes Commands for Contacts with Same Names #4

Closed elliot-tang closed 1 week ago

elliot-tang commented 1 week ago

Actual Output

When attempting to add/edit/delete a note to a contact with name "John" when there are two such contacts in the Address Book, the following error message is thrown:

Multiple contact match the name "John".
The displayed list has been filtered based on the name "John".
Please specify an index for the correct person.

Expected Output

Perhaps a clearer error message could be shown, that informs the user that he has to re-input the entire command, this time passing in an index instead of a name. When I first read the error message, I wasn't sure how to input the index, and I thought you simply had to add the new index after the name.

Steps to Reproduce

  1. Add two contacts with similar names, e.g. John
  2. Input the following command: notes del/John

Screenshots

image.png