yleeyilin / pe

0 stars 0 forks source link

Delete feutre has different error messages for the same problem #11

Open yleeyilin opened 2 months ago

yleeyilin commented 2 months ago

Steps to reproduce:

Expected:

Actual:

Screenshots:

image.png

image.png

nus-pe-script commented 2 months ago

Team's Response

The error messages for delete 0 and delete 100 are correct.

The command delete 0 provides an index of value 0 that does not follow the command format specified in the error message or the user guide that the index has to be a positive integer.

Error message: SCR-20240421-qyeh.png User guide: SCR-20240421-qyho.png

On the other hand, the command delete 100 is following the command format as 100 is a positive integer. Therefore, delete 100 returns an error specifying the invalid index rather than a command format error in delete 0.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: What I meant was that the command error message should be similar. For example, for delete 100:

Invalid index provided! 
delete: Deletes....
Parameters: INDEX (must be a positive integer) 
Example: delete 1 

Consistency in error message handling is key to ensuring user understanding and usability.

Consider the scenario where a user mistypes a command or provides incorrect parameters. If the error message varies significantly from what they're accustomed to, it introduces unnecessary cognitive load as they attempt to decipher the meaning and implications of the error. This not only disrupts the user experience but also undermines the efficiency and effectiveness of the system.

By standardising error messages across commands, users can rely on familiar patterns and structures to interpret and address errors consistently. This not only streamlines the troubleshooting process but also empowers users to navigate the system with confidence and clarity.

By adopting a uniform approach to error messaging, users are better equipped to understand and troubleshoot issues they encounter. Inconsistencies in error messages, such as drastically different formats or levels of detail, can lead to confusion and frustration for users, ultimately hindering their ability to effectively interact with the system.