Skip to content

Commit

Permalink
At least have an exception message on this one
Browse files Browse the repository at this point in the history
  • Loading branch information
meh2481 committed Dec 29, 2023
1 parent 37a4a38 commit 638ddfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static Color parse(String input){
Integer.parseInt(after2.substring(0, after2.indexOf(","))),
Integer.parseInt(after2.substring(after2.indexOf(",") + 1)));
} else {
throw new NumberFormatException();
throw new NumberFormatException("Invalid color format: " + input);
}
} catch (Exception e){
throw e;
Expand Down

0 comments on commit 638ddfa

Please sign in to comment.