diff options
Diffstat (limited to 'internal/color/color.go')
| -rw-r--r-- | internal/color/color.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/color/color.go b/internal/color/color.go index 9d0bc2e..aebc9e4 100644 --- a/internal/color/color.go +++ b/internal/color/color.go @@ -86,7 +86,7 @@ func ToFgColor(s string) (FgColor, error) { case "default": return FgDefault, nil default: - return FgDefault, fmt.Errorf("unknown foreground text color '" + s + "'") + return FgDefault, fmt.Errorf("unknown foreground text color '%s'", s) } } @@ -113,7 +113,7 @@ func ToBgColor(s string) (BgColor, error) { case "default": return BgDefault, nil default: - return BgDefault, fmt.Errorf("unknown background text color '" + s + "'") + return BgDefault, fmt.Errorf("unknown background text color '%s'", s) } } @@ -143,6 +143,6 @@ func ToAttribute(s string) (Attribute, error) { case "": return AttrNone, nil default: - return AttrNone, fmt.Errorf("unknown text attribute '" + s + "'") + return AttrNone, fmt.Errorf("unknown text attribute '%s'", s) } } |
