Open paing-oo opened 2 years ago
The error message clearly states that the INDEX
must be a positive integer, and 0 is not a positive integer. Hence, the command format is indeed invalid and the correct message is shown.
Team chose [response.Rejected
]
Reason for disagreement: Even though the UG states that the index is a positive integer, the error message should be targeted at the specific error instead so that the user knows which part of the command that he has included wrongly. Since there are multiple fields used in the command, it would be inconvenient for the user to analyze through the whole inputted command just to find out which part of the inputted command is wrong.
Since index 0 is out of bound, error message should be invalid index error instead of invalid command format. When testing the delete -i command on index 5 which is also out of bound, an invalid index error is shown, this leads to inconsistency in the error messages for the same type of error which might lead to confusion for the user.
Steps to reproduce:
command:
delete -i 5
Expected error message:
The applicant index provided is invalid (which is shown when
delete -a 5
is used instead and the applicant list is of size 4)Actual error message shown:
Invalid command format! delete -i : Deletes the interview identified by the index number used in the displayed interview list. Parameters: INDEX (must be a positive integer) Example: delete -i 1