Skip to content

Commit c24f08e

Browse files
fix: Improve error message for invalid hex color parsing
1 parent 474d101 commit c24f08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surf-clan-paper/src/main/kotlin/dev/slne/clan/paper/commands/arguments/color/BaseHexColorArgument.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ abstract class BaseHexColorArgument<T>(
1111
val normalized = HexColorParser.normalizeToRgba(info.currentInput())
1212
?: throw CustomArgumentException.fromMessageBuilder(
1313
MessageBuilder()
14-
.append("Invalid hex color: ")
14+
.append("Failed to parse hex color code: ")
1515
.appendArgInput()
1616
)
1717

0 commit comments

Comments
 (0)