Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set function shows an incorrect error message #2

Open
ruth-lim opened this issue Nov 17, 2023 · 1 comment
Open

set function shows an incorrect error message #2

ruth-lim opened this issue Nov 17, 2023 · 1 comment

Comments

@ruth-lim
Copy link
Owner

ruth-lim commented Nov 17, 2023

CleanShot 2023-11-17 at 16.39.59@2x.png

When there are no cards in the deck, and I try to set difficulty using set d/HARD, it says "Card index provided is invalid."

I think the error message does not match the error here since INDEX isn't an input parameter in the first place.

Perhaps, it would be more informative for the user if it said something along the lines of "There are no cards in deck to set difficulty to."

@soc-pe-bot
Copy link

soc-pe-bot commented Nov 20, 2023

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

Flawed error message provided using "solve"

Problem:
When no card is inside the list, it is suggested to have error message such as "No card is inside the list" instead of "The card index is invalid", as no index is provided in this case.

Screenshot 2023-11-17 at 5.06.36 PM.png


[original: nus-cs2103-AY2324S1/pe-interim#3275] [original labels: severity.Low type.FunctionalityBug]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

Thanks for the feedback, we concluded that this bug is rejected. This solve command works the same as solve 1, and since there is no cards present now, the index of the card exceeds the deck size, and hence it behaves as expected.

Items for the Tester to Verify

❓ Issue duplicate status

Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)

  • I disagree

Reason for disagreement: [replace this with your explanation]


❓ Issue response

Team chose [response.Rejected]

  • I disagree

Reason for disagreement: Right now, if the user inputs set d/Hard without specifying an index, the error message is "The card index provided is invalid." which is misleading. If no cards are present in the deck, the error message should clarify that there are no cards to apply the difficulty setting to, rather than implying an issue with a non-existent index that the user did not provide. A user trying to execute this command can be confused as to why there's an error with the index.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants