choowengyan / pe

0 stars 0 forks source link

Irrelevant Error Message for `add` command #5

Closed choowengyan closed 5 months ago

choowengyan commented 5 months ago

As shown in the screenshot below, adding add n/Amy Ho p/98765432 e/amy@nus.com /311, Clementi Ave 2, #02-25 t/friends t/owesMoney is not allowed in the program, showing invalid command format in the error message box. However, the inputted command did follow the command format correctly.

This is due to extra white spaces inserted in the middle of names which causes this to occur (as shown in the screenshot).

Error message can be more specified to the user to identify the error such as extra white spaces are not allowed.

Screenshot 2024-04-19 at 4.32.39 PM.png