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
Run edit patients 1 p/91234567 d/test
Program displays error message: "Phone numbers should only contain numbers...".
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.
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
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
edit patients 1 p/91234567 d/test
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.
[original: nus-cs2103-AY2223S1/pe-interim#4797] [original labels: type.FunctionalityBug severity.Low]