nus-cs2113-AY2223S2 / pe-dev-response

0 stars 0 forks source link

Unclear indication of missing switch #931

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

When I miss out a certain detail when adding a task, I'm not sure what switch I missed out until I refer to the long command usage in the DG.

Steps to reproduce: add -e Career Fair -sd 2023/02/10 -ed 2023/02/11

Expected output: An error message telling me exactly what information I am missing.

Actual output:

add -e Career Fair -sd 2023/02/10 -ed 2023/02/11
____________________________________________________________
Event name/index, start time/date or module info is missing!
Please use correct command format!
____________________________________________________________

[original: nus-cs2113-AY2223S2/pe-interim#744] [original labels: severity.Medium type.FeatureFlaw]

matthew-liu-zhenjie commented 1 year ago

Team's Response

Error messages are meant to inform users that there is errorneous input. In the above case, the exception message above does inform the user that their input is wrong, and the user is able to double check their input from either the help command or the User Guide.

Duplicate status (if any):

--