Renamed 'printAndExit' to 'printErrAndExit'

This commit is contained in:
2024-08-10 11:29:18 -05:00
parent 2a007ba56c
commit 7feac0b5f7
3 changed files with 8 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ func newColor(colorString string) (color, error) {
// newColorMust is similar to newColor, but prints an error and exits if the given color isn't valid.
func newColorMust(colorString string) color {
if clr, err := newColor(colorString); err != nil {
printAndExit(err.Error())
printErrAndExit(err.Error())
panic(err) // NEVER REACHED
} else {
return clr