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.
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.