CS2103-AY1819S2-W11-3 / main

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.
https://travelbuddy-cs2103.netlify.com/
MIT License
1 stars 6 forks source link

Wrong error message when adding a place with invalid date #147

Closed nus-se-bot closed 5 years ago

nus-se-bot commented 5 years ago

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:

  1. 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"
  2. 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".

Screenshots image


Reported by: @dukesun99 Severity: Low

[original: nus-cs2103-AY1819S2/pe-dry-run#518]

PremBagda commented 5 years ago

Resolved.