diff --git a/src/main/java/seedu/address/logic/parser/ParserUtil.java b/src/main/java/seedu/address/logic/parser/ParserUtil.java index d1e3015fcc2..b3cd00b6d7c 100644 --- a/src/main/java/seedu/address/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/address/logic/parser/ParserUtil.java @@ -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); }