Describe the bug
When the transaction list is empty and delete items from the list, the error message is index out of bound, however, users might not be aware that the list is empty, causing confusion. Hence, the error is not precise. This happens to mark command when there is no such items.
To Reproduce Steps to reproduce the behavior:
- Launch program
- Input command:
delete 1
Expected behavior
Message showing the list is empty, nothing to be deleted
Actual behaviour
Index is out of bound
Screenshots


Additional context
Add any other context about the problem here.
Describe the bug
When the transaction list is empty and delete items from the list, the error message is index out of bound, however, users might not be aware that the list is empty, causing confusion. Hence, the error is not precise. This happens to
markcommand when there is no such items.To Reproduce Steps to reproduce the behavior:
delete 1Expected behavior
Message showing the list is empty, nothing to be deleted
Actual behaviour
Index is out of bound
Screenshots
Additional context
Add any other context about the problem here.