Open zuohui48 opened 1 year ago
Thank you for bringing this to our attention.
[The team marked this bug as a duplicate of the following bug]
Vague error message for datetime validation
Actual
When an incorrect date-time is added, it should specify why the date is incorrect.
Expected
Currently, the message is simply:
Invalid Date Input Format (DD-MM-YYYY HH:mm). Please input valid digits.
. Which is quite vague, and does not help the user in some instances.Steps to reproduce
- Start the application
- Run the following command:
create-session n/Test l/Test s/02-29-2023 09:00 to 03-30-2023 10:00
The error message shown does not specify why the date is incorrect, and can lead to unecessary confusion.
Screenshots
[original: nus-cs2103-AY2223S2/pe-interim#4403] [original labels: severity.Low type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
Thank you for bringing this to our attention.
This problem is planned to be fixed in a future version of SportSync, as described by Planned Enhancement #5 in our Developer Guide:
5. More error messages could be added to cover all possible invalid inputs.
When entering a wrongly formatted command, SportSync displays a generic message stating that the command format is wrong.
We plan on adding more error messages that precisely state how the command format is wrong, to improve user understanding.
e.g. “Wrong command format: Datetime should be in format DD-MM-YYYY HH:mm”
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
The error message shown does not address the problem of the input. The problem with the input is the use of the word "TO" instead of "to", the error message indicates that the date entered is in valid format, which is not the case.
Steps to reproduce: