Skip to content

Unclear message when executing command from empty list #11

Description

@wenxin-c

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:

  1. Launch program
  2. Input command: delete 1

Expected behavior

Message showing the list is empty, nothing to be deleted

Actual behaviour

Index is out of bound

Screenshots

image.png

image.png

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions