nus-cs2103-AY2223S1 / pe-dev-response

0 stars 0 forks source link

Error message indicating invalid phone number when a valid number was given with another invalid argument #4928

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

Description

If a valid phone number is given, but another wrong argument was entered, the program warns the use of an invalid phone number instead of the wrong argument

Steps to reproduce

Issue

The user might have accidentally input a wrong argument. In this case, d/test. But, the program indicates that the phone number is invalid when it is, in fact, valid. This behaviour is not specified in the UG, which can lead to confusion.

Expected behaviour: the program should warn the user that the command format is wrong, or that there is a wrong argument.

2.png


[original: nus-cs2103-AY2223S1/pe-interim#4797] [original labels: type.FunctionalityBug severity.Low]

Guanzhou03 commented 1 year ago

Team's Response

The user has inputted a wrong command, the d/test is included as a phone number, thus the phone number is treated as "91234567 d/test" because there is no d/ prefix that is accepted for patients

Duplicate status (if any):

--