Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lm-44/tp into AddAssignme…
Browse files Browse the repository at this point in the history
…nt-TestCases
  • Loading branch information
lm-44 committed Oct 20, 2024
2 parents 85671ae + f3a9c17 commit d31ae2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import seedu.address.commons.core.index.Index;
import seedu.address.logic.commands.AddAssignmentCommand;
import seedu.address.logic.commands.EditCommand;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.assignment.AssignmentName;

Expand Down Expand Up @@ -38,7 +37,8 @@ public AddAssignmentCommand parse(String args) throws ParseException {
try {
studentIndex = ParserUtil.parseIndex(argMultimap.getValue(PREFIX_STUDENT_INDEX).get());
} catch (ParseException pe) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, EditCommand.MESSAGE_USAGE), pe);
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT,
AddAssignmentCommand.MESSAGE_USAGE), pe);
}
AssignmentName assignmentName = ParserUtil.parseAssignmentName(argMultimap.getValue(PREFIX_ASSIGNMENT_NAME)
.get());
Expand Down

0 comments on commit d31ae2a

Please sign in to comment.