Skip to content

Commit

Permalink
Merge pull request #154 from Kb-Tay/branch-Feature-UpdateErrorMessage
Browse files Browse the repository at this point in the history
Update error messages
  • Loading branch information
jylow authored Nov 2, 2023
2 parents ade49f7 + 8d53efe commit c1bd090
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public class ScheduleCommand extends Command {

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Schedules an appointment of the person identified "
+ "by the index number used in the displayed person list. "
+ "Parameters: INDEX(must be a positive integer) "
+ "\nParameters: INDEX(must be a positive integer) "
+ "[" + PREFIX_APPOINTMENT + "Appointment Name] "
+ "[" + PREFIX_APPOINTMENT_DATE + "Appointment Date] "
+ "Example: " + COMMAND_WORD + " 1 "
+ "\nExample: " + COMMAND_WORD + " 1 "
+ PREFIX_APPOINTMENT + "Review Insurance "
+ PREFIX_APPOINTMENT_DATE + "01-01-2023 20:00";
public static final String MESSAGE_SCHEDULE_SUCCESS = "New appointment added: %1$s";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SortCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Sorts the current list based currently available "
+ "sort functions.\n"
+ "Currently available sorting variations: \n"
+ "-name (lexicographical name sort)\n -appointment (earliest timing first)\n"
+ "-name (lexicographical name sort)\n-appointment (earliest timing first)\n"
+ "Parameters: sort [variation]...\n"
+ "Example: sort name";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class NextOfKinName extends Name {
*
* @param nextOfKinName A valid next-of-kin name.
*/
public static final String MESSAGE_CONSTRAINTS = "Next of Kin's " + Name.MESSAGE_CONSTRAINTS;
public NextOfKinName(String nextOfKinName) {
super(nextOfKinName);
}
Expand Down

0 comments on commit c1bd090

Please sign in to comment.