TravelBuddy is a travel log application that lets users efficiently manage their travel records. Additional features built into TravelBuddy allows them to search through the records, attach photos and view statistical models.
Describe the bug
When adding places with invalid data parameter, e.g. "dv/29/02/2018" which does not exist, it says "Date visited must follow the DD/MM/YYYY format". However, it should tell the user "the date is invalid" instead of "the format is wrong".
To Reproduce
Steps to reproduce the behavior:
Input command "add n/NUS Computingc cc/SGP dv/29/02/2019 r/5 d/No description a/NUS School of Computing, COM1, 13 Computing Drive, 117417"
See the bug
Expected behavior
The error message should tell the user this is an invalid date like "Date visited must be a valid date".
Describe the bug When adding places with invalid data parameter, e.g. "dv/29/02/2018" which does not exist, it says "Date visited must follow the DD/MM/YYYY format". However, it should tell the user "the date is invalid" instead of "the format is wrong".
To Reproduce Steps to reproduce the behavior:
Expected behavior The error message should tell the user this is an invalid date like "Date visited must be a valid date".
Screenshots
Reported by: @dukesun99 Severity: Low
[original: nus-cs2103-AY1819S2/pe-dry-run#518]