From beef90c19a803fd4c94d78677605cb83f24796ef Mon Sep 17 00:00:00 2001 From: jovantanyk Date: Mon, 15 Apr 2024 22:40:45 +0800 Subject: [PATCH] fix wrong error message in DateOfVisit --- src/main/java/seedu/address/logic/parser/ParserUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }