yxtan02 / ped

0 stars 0 forks source link

Lack of error handling when the invalid command "find owner p/PHONE" is entered #13

Closed yxtan02 closed 6 days ago

yxtan02 commented 6 days ago

Initially, I added an owner with the phone number 98765432 into the app. image.png

When I use the command "find owner p/98765432", the app shows that no owners are returned by the search command: image.png

I believe there should be an error message shown as the correct command format is find owners and not find owner. The user may be confused as to why although there's a user with phone number of 98765432, the app returns no matching owners

Steps to reproduce:

  1. owner i/S1234567D n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25
  2. find owner p/98765432

Expected: Error message/Corresponding owner returned

Actual: No matching owners returned