Skip to content

Commit

Permalink
Fix incorrect error message and some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
E0735389 committed Apr 15, 2024
1 parent 2600ea1 commit afeeebf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class MainApp extends Application {

public static final String APP_NAME = "NUSContacts";

public static final Version VERSION = new Version(1, 3, 0, false);
public static final Version VERSION = new Version(1, 4, 0, false);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public DeleteCommand parse(CommandPart args) throws ParseException {
List<Index> indices = ParserUtil.parseIndices(args, ",");
return new DeleteCommand(indices);
} catch (ParseException pe) {
throw new ParseException(
String.format(MESSAGE_INVALID_COMMAND_FORMAT, DeleteCommand.MESSAGE_USAGE), pe);
throw new ParseException(pe.getMessage(), pe);
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public class ParserUtil {

public static final String MESSAGE_INVALID_INDEX = "Index is not a non-zero unsigned integer.";
public static final String MESSAGE_DUPLICATE_INDEX = "There is a duplicate Index listed.";
public static final String MESSAGE_DUPLICATE_INDEX = "There is a duplicate index listed.";
public static final String MESSAGE_ROLE_CONSTRAINTS =
"Roles should be either 'STUDENT', 'TA', or 'PROFESSOR', or an unambiguous prefix of it.";
/**
Expand Down

0 comments on commit afeeebf

Please sign in to comment.