nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Unexpected Error Message when in history view #248

Open nus-pe-bot opened 1 week ago

nus-pe-bot commented 1 week ago

image.png

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.


[original: nus-cs2103-AY2425S1/pe-interim#353] [original labels: type.FunctionalityBug severity.VeryLow]

GabrielCWT commented 1 week ago

Team's Response

No details provided by team.

Duplicate status (if any):

Duplicate of #1659