Open nus-pe-bot opened 4 years ago
The error message means that there are no weight stored in the list currrently. Thus there is no weight-progress to be shown which fits the message that should be shown for the command too. We can add a few more lines of message if required in the future. This only occurs when user delete all the weight in the list which should not be the case as a person will always have a weight. We did not want to implement having atleast one weight stored as we want to make it flexible for user to delete any weight they wish to easily.
--
When I delete the weight record first(then there is no weight record in the list), and when I want to view the weight progress, a message indicating invalid index comes out. It seems weird here since
check-weight-progress
does not require a index as parameter. I guess the warning message here should look like "currently there is no weight record"[original: nus-cs2113-AY1920S2/pe-interim#676]