Skip to content

Inaccurate error message for invalid add order command #9

@ki1r0

Description

@ki1r0

##Description
Inaccurate error message for invalid add order command.
The error message is
The index provided is out of range.
Please make sure the the index refers to a valid client, pastry or order in the current list shown.
However the order Index is correct. This does not help the user in knowing where he got the input wrong.

##Steps to reproduce
add order 1 -p Croissant -q 2 -pn Tart -q2

##Expected
error message of invalid command format as the first prefix is wrong.

##Actual
The index provided is out of range.
Please make sure the the index refers to a valid client, pastry or order in the current list shown.

##Screenshots

image.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions