When in history view, trying to enter a restricted command should yield the message:
"This command is restricted in history view.
It is only available in the person list view to ensure the command is executed on the correct elderly.
Use 'list' to return to the person list view to use this command."
However, if you enter an invalid command, for example, just delete, it prints the following message:
"Invalid command format!
delete: Deletes the elderly identified by the index number used in the displayed person list.
Parameters: INDEX (must be a positive integer) or NRIC (must be government issued)
Example: delete 1 or delete S6253285H"
Expected: Because the command is restricted in the first place, it should still print the first error message.
When in history view, trying to enter a restricted command should yield the message:
However, if you enter an invalid command, for example, just
delete
, it prints the following message:Expected: Because the command is restricted in the first place, it should still print the first error message.
[original: nus-cs2103-AY2425S1/pe-interim#353] [original labels: type.FunctionalityBug severity.VeryLow]