Skip to content

Commit

Permalink
Fix minor bug with error message on add item usage
Browse files Browse the repository at this point in the history
  • Loading branch information
seox123 committed Oct 12, 2022
1 parent cd5d6ab commit 7905ecf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public AddItemCommand parse(String args) throws ParseException {

if (!arePrefixesPresent(argMultimap, PREFIX_DESCRIPTION)
|| !argMultimap.getPreamble().isEmpty()) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCommand.MESSAGE_USAGE));
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddItemCommand.MESSAGE_USAGE));
}

String description = ParserUtil.parseDescription(argMultimap.getValue(PREFIX_DESCRIPTION).get());
Expand Down

0 comments on commit 7905ecf

Please sign in to comment.