Skip to content

Commit

Permalink
Fix emojis not displaying in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Prearo committed Sep 1, 2022
1 parent 845eba4 commit bda30d0
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/main/java/duke/messages/ExceptionMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
*/
public final class ExceptionMessages {

public static String EMPTY_TASK_DESCRIPTION = "☹ OOPS!!! The description of a %s cannot be empty.\n";
public static String EMPTY_TASK_TIME = "☹ OOPS!!! The date/time of a %s cannot be empty.\n";
public static String INVALID_FORMAT = "☹ OOPS!!! Please indicate a description and date/time separated by %s\n";
public static String UNSUPPORTED_ACTION = "☹ OOPS!!! I'm sorry, but I don't know what that means :-(\n";
public static String INVALID_INDEX_FORMAT = "☹ OOPS!!! Please indicate only an index for the command\n";
private static final String frowningFace = String.format("%c", 0x1F641);

public static String EMPTY_TASK_DESCRIPTION = frowningFace + " OOPS!!! The description of a %s cannot be empty.\n";
public static String EMPTY_TASK_TIME = frowningFace + " OOPS!!! The date/time of a %s cannot be empty.\n";
public static String INVALID_FORMAT = frowningFace
+ " OOPS!!! Please indicate a description and date/time separated by %s\n";
public static String UNSUPPORTED_ACTION = frowningFace
+ " OOPS!!! I'm sorry, but I don't know what that means :-(\n";
public static String INVALID_INDEX_FORMAT = frowningFace
+ " OOPS!!! Please indicate only an index for the command\n";
public static String LOAD_ERROR = "Error loading data from storage\n";
public static String INVALID_FIND_FORMAT = "☹ OOPS!!! Please indicate the string to scan the task list for\n";
public static String INVALID_FIND_FORMAT = frowningFace
+" OOPS!!! Please indicate the string to scan the task list for\n";

}

0 comments on commit bda30d0

Please sign in to comment.