diff --git a/src/main/java/seedu/address/logic/commands/ListStudentsOfClassCommand.java b/src/main/java/seedu/address/logic/commands/ListStudentsOfClassCommand.java index ca0343be06e..a9d91c80656 100644 --- a/src/main/java/seedu/address/logic/commands/ListStudentsOfClassCommand.java +++ b/src/main/java/seedu/address/logic/commands/ListStudentsOfClassCommand.java @@ -15,7 +15,7 @@ public class ListStudentsOfClassCommand extends Command { public static final String COMMAND_WORD = "/class_list_students"; - public static final String MESSAGE_EMPTY = "No students found in the specified tutorial class"; + public static final String MESSAGE_STUDENT_LIST_EMPTY = "No students found in the specified tutorial class"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": List students of the tutorial class. \n" + "Parameters: " + PREFIX_MODULECODE + "MODULE CODE " @@ -44,11 +44,11 @@ public CommandResult execute(Model model) throws CommandException { ModuleCode existingModule = model.findModuleFromList(module); if (existingModule == null || !existingModule.hasTutorialClass(tutorialClass)) { return new CommandResult(String.format("Module %s or tutorial class %s not found", - module, tutorialClass, MESSAGE_EMPTY)); + module, tutorialClass, MESSAGE_STUDENT_LIST_EMPTY)); } TutorialClass existingTutorialClass = model.findTutorialClassFromList(tutorialClass, module); if (existingTutorialClass.getStudents().isEmpty()) { - return new CommandResult(MESSAGE_EMPTY); + return new CommandResult(MESSAGE_STUDENT_LIST_EMPTY); } StringBuilder result = new StringBuilder();