Open nus-pe-bot opened 4 years ago
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.
--
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:
Suggested bahaviour: addf apple pie -- Please enter a valid calory.
[original: nus-cs2113-AY1920S2/pe-interim#697]