Skip to content

Commit

Permalink
fix wrong error message in DateOfVisit
Browse files Browse the repository at this point in the history
  • Loading branch information
jovantanyk committed Apr 15, 2024
1 parent b103b6b commit beef90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static DateOfVisit parseDateOfVisit(String dov) throws ParseException {
requireNonNull(dov);
String trimmedDov = dov.trim();
if (!DateOfVisit.isValidDateOfVisit(trimmedDov)) {
throw new ParseException(DateOfBirth.MESSAGE_CONSTRAINTS);
throw new ParseException(DateOfVisit.MESSAGE_CONSTRAINTS);
}
return new DateOfVisit(trimmedDov);
}
Expand Down

0 comments on commit beef90c

Please sign in to comment.