Skip to content

Commit

Permalink
Tweak Exception message slightly to increase readability
Browse files Browse the repository at this point in the history
  • Loading branch information
hanif-kamal committed Oct 12, 2021
1 parent 9875874 commit 42b0e12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/duke/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ private String checkCase(String command) throws DukeException {
case ("done"):
throw new DukeException("Please ensure that there is a number after the command 'done'. Try again.");
case ("deadline"):
throw new DukeException("Please ensure that there is a task description after the command 'deadline' "
throw new DukeException("Please ensure that there is a task description after the command 'deadline', "
+ "and a deadline after '/by'. Try again.");
case ("event"):
throw new DukeException("Please ensure that there is a task description after the command 'event' "
+ "with a date and time after '/at'. Try again.");
throw new DukeException("Please ensure that there is a task description after the command 'event', "
+ "and a date and time after '/at'. Try again.");
case ("todo"):
throw new DukeException("Please ensure that there is a task description after the command 'todo'. "
+ "Try again.");
Expand Down

0 comments on commit 42b0e12

Please sign in to comment.