Skip to content

Commit

Permalink
Update incorrect event task storage format message
Browse files Browse the repository at this point in the history
  • Loading branch information
zognin committed Sep 22, 2021
1 parent 9ebcaf7 commit 55f4830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tasklist/EventTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public static EventTask createTaskFromStoredString(String description) throws In

return new EventTask(actionDescription, isDone, date, startTime, endTime);
} catch (InvalidNumOfStringPartsException | InvalidDateTimeFormatException e) {
String expectedFormat = String.format("[ ] <description> %s %s %s",
SPLITTER_ACTION_TIME, dateFormat, timeFormat);
String expectedFormat = String.format("[ ] <description> %s %s %s %s",
SPLITTER_ACTION_TIME, dateFormat, timeFormat, timeFormat);
throw new InvalidFormatInStorageException(description, expectedFormat);
}
}
Expand Down

0 comments on commit 55f4830

Please sign in to comment.