From 63ffcba215f4f9d9bd30c5c36f19687fba0109a6 Mon Sep 17 00:00:00 2001 From: Bernard Xie Date: Mon, 27 Feb 2023 16:10:00 -0800 Subject: [PATCH] error --- lib/color/color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/color/color.go b/lib/color/color.go index d9f18b03a..a2be93c93 100644 --- a/lib/color/color.go +++ b/lib/color/color.go @@ -169,7 +169,7 @@ func Hex2RGB(hex string) (RGB, error) { if hex[0:1] == "#" { hex = hex[1:] } else { - return RGB{}, nil + return RGB{}, fmt.Errorf("cannot parse hex color %v", hex) } values, err := strconv.ParseUint(hex, 16, 32) if err != nil {