nus-cs2113-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Inaccurate error message #712

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

When trying to use the 'bm' command, I typed in the command wrongly as 'bmm 1' instead of 'bm 1'. The command is wrong but the category number which was 1 is valid. Howeverr, the error message shows that the number is invalid. Should the error message show that the command is typed incorrectly instead?

image.png

Same issue for the delete command

image.png


[original: nus-cs2113-AY2021S1/pe-interim#1224]

lingsihui commented 3 years ago

Team's Response

It is written in the user guide that the user can omit the space between the command and the index number. Hence. the program will not be able to detect that the user has misspelled a command, however, will always show that it is invalid due to the program parsing a character instead of a number.

Screenshot 2020-11-14 at 7.07.37 PM.png

Duplicate status (if any):

--