nus-cs2113-AY1920S2 / pe-dev-response

0 stars 0 forks source link

Incorrect error message when adding food to database #694

Open nus-pe-bot opened 4 years ago

nus-pe-bot commented 4 years ago

Description: When I did not input the calory for a food, the error message is strange: Invalid index of weight! Please check and try again.. This error message seems to be the one when deleting a weight with invalid index.

Current behaviour:

image.png

Suggested bahaviour: addf apple pie -- Please enter a valid calory.


[original: nus-cs2113-AY1920S2/pe-interim#697]

yuxianglim commented 4 years ago

Team's Response

The usability is not affected in this case. This error might be caused when there is already an error in the user’s weight such as empty weight after user accidentally deleted all weight from the record. Thus the system might prompt the user to check the weight prior to using anymore functions in the program.

We can rectify this small UI issue by making the statement or intuitive for the user based on the command input if required.

Duplicate status (if any):

--