nus-cs2103-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Inconsistent editp error messages #1999

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

The error message changes when the problem is the same: the input index is invalid as it is not in the list

image.png

vs

image.png


[original: nus-cs2103-AY2021S2/pe-interim#1999] [original labels: severity.High type.FunctionalityBug]

totoyoyo commented 3 years ago

Team's Response

Thank you for your comment.

The problems shown are not the same, hence the different errors.

In the first scenario, the user inputs an integer 1000000 for the index, as required. But the index is not valid, since the list is not long enough. The error message reflects this.

In the second, the user inputs 10000000000, which is not an integer in this context (of Java programs). Hence, the input does not contain an integer so it does not follow the correct command format. The command is then not valid, and the error message reflects this.

Duplicate status (if any):

--