Open QinHaichen12 opened 1 week ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
[Error Message: Add Command] Error Message not specific
Background
Based on UG, mentioned that there should be 3 kinds of error messages. The last of the 3 is the specific error message.
Test Case
add n/John Lee nric/S9369777D p/91234567 a/123 Medical D role/PATIENT t/Chicken
Expected Behaviour
Error message: Missing required field: Email
Encountered Behaviour
Invalid command format!
Suggestion
Best would be to specify the missing fields, but minimal changes would be to change your UG
[original: nus-cs2103-AY2425S1/pe-interim#827] [original labels: severity.Medium type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
I agree there's a discrepancy between the documentation and actual behaviour, but I would classify this as a type.DocumentationBug with severity.Low rather than a feature flaw. This is a documentation bug because:
The current error handling behavior (showing 'Invalid command format!') is following standard CLI conventions and provides clear feedback to users The UG needs to be updated to accurately reflect the different error scenarios and their corresponding messages The actual implementation is working as intended - it's the documentation that needs to match the implementation
I would classify this as severity.Low because:
- Users still receive helpful error messages that guide them to the solution
- The command format example is shown, making it clear what's missing
- The documentation inconsistency doesn't prevent users from using the application
- Users can still understand and correct their mistakes
- It's primarily a cosmetic issue with the documentation rather than a functional problem
The fix would be to update the UG to accurately document both cases:
- When command parameters are missing entirely
- When required fields are present but empty
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]
Description
As per the user guide, a
missing required field
error message should be displayed when a required field is not given, however an invalid command format message is displayed insteadCommand:
add n/John Doe p/9875432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/backPai role/patient