Skip to content

Commit f9bbdc3

Browse files
committed
Add invalid value to color-format exception
1 parent c70ab29 commit f9bbdc3

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/de/bluecolored/bluemap/api/math

1 file changed

+1
-1
lines changed

src/main/java/de/bluecolored/bluemap/api/math/Color.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private static int parseColorString(String val) {
136136
val.charAt(0) + val.charAt(0) + val.charAt(1) + val.charAt(1) +
137137
val.charAt(2) + val.charAt(2) + val.charAt(3) + val.charAt(3);
138138
if (val.length() == 6) val = val + "ff";
139-
if (val.length() != 8) throw new NumberFormatException("Invalid color format!");
139+
if (val.length() != 8) throw new NumberFormatException("Invalid color format: '" + val + "'!");
140140
val = val.substring(6, 8) + val.substring(0, 6); // move alpha to front
141141
return Integer.parseUnsignedInt(val, 16);
142142
}

0 commit comments

Comments
 (0)