From 87597507f890a84f5415ccd54c0aa55e660525d2 Mon Sep 17 00:00:00 2001 From: ReganChoy Date: Wed, 3 Apr 2024 20:06:27 +0800 Subject: [PATCH] Fix compile error and error message --- src/main/java/seedu/address/logic/commands/SetCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/commands/SetCommand.java b/src/main/java/seedu/address/logic/commands/SetCommand.java index b93193db986..8ec8e2398ee 100644 --- a/src/main/java/seedu/address/logic/commands/SetCommand.java +++ b/src/main/java/seedu/address/logic/commands/SetCommand.java @@ -21,7 +21,8 @@ public class SetCommand extends Command { + "Parameters: " + "NUMBER_OF_DAYS " + "Example: " + COMMAND_WORD + " " - + "90. "; + + "90.\n " + + "NUMBER_OF_DAYS must be an integer and be at least 0."; public static final String MESSAGE_SUCCESS = "LastMet Overdue time period has been set to %1$s days."; /** @@ -42,7 +43,7 @@ public CommandResult execute(Model model) throws CommandException { requireNonNull(model); LastMet.setLastMetDuration(this.overdueTimePeriod); - List lastShownList = model.getFilteredPersonList(); + List lastShownList = model.getSortedFilteredPersonList(); int numberOfClients = lastShownList.size();