Tweak error message

This commit is contained in:
brabli
2025-11-13 16:36:58 +00:00
parent 93c4dd1e64
commit 14fd9ca2ec

View File

@@ -48,7 +48,7 @@ final class Badge
if (!in_array($colour, $cases)) {
$formattedCases = implode(', ', array_map(fn (string $s) => '"'.$s.'"', $cases));
throw new \RuntimeException(sprintf('"%s" is not a valid Badge colour. Available options are: %s', $colour, $formattedCases));
throw new \RuntimeException(sprintf('"%s" is not a valid badge colour. Available options are: %s.', $colour, $formattedCases));
}
$colour = strtoupper($colour);