the format to edit an expenditure record is edit INDEX d/DATE a/AMOUNT p/DESCRIPTION
Here, with only 1 expenditure record in the current list, trying to edit at index=10 should theoretically output another error message regarding the index being out of bounds. However, even though all parameters have been entered in the correct format followed from the UG, the output error message does not make sense.
Perhaps another error message should be outputted instead when a user tries to edit at an index value that exceeds the total existing number of records in the list.
Based on the UG,
the format to edit an expenditure record is edit INDEX d/DATE a/AMOUNT p/DESCRIPTION
Here, with only 1 expenditure record in the current list, trying to edit at index=10 should theoretically output another error message regarding the index being out of bounds. However, even though all parameters have been entered in the correct format followed from the UG, the output error message does not make sense.
Perhaps another error message should be outputted instead when a user tries to edit at an index value that exceeds the total existing number of records in the list.