Skip to content

Commit

Permalink
Merge pull request #52 from seox123/add-item-bug-fix
Browse files Browse the repository at this point in the history
Fix minor bug with error message on add item usage
  • Loading branch information
seox123 authored Oct 12, 2022
2 parents cd5d6ab + 9171335 commit 20aa4ad
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.util.stream.Stream;

import seedu.waddle.logic.commands.AddCommand;
import seedu.waddle.logic.commands.AddItemCommand;
import seedu.waddle.logic.parser.exceptions.ParseException;
import seedu.waddle.model.item.Item;
Expand All @@ -25,7 +24,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 20aa4ad

Please sign in to comment.