From e00e5faf6ec0ecd33d47c995e99153d427b409f1 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sun, 12 Feb 2023 20:55:08 -0800 Subject: [PATCH] filelist/osksdl: just use fmt.Errorf to create an error --- internal/filelist/osksdl/osksdl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filelist/osksdl/osksdl.go b/internal/filelist/osksdl/osksdl.go index d9e4412..f3aa4ec 100644 --- a/internal/filelist/osksdl/osksdl.go +++ b/internal/filelist/osksdl/osksdl.go @@ -130,7 +130,7 @@ func getOskConfFontPath(oskConfPath string) (string, error) { } } if !misc.Exists(path) { - return path, errors.New("Unable to find font: " + path) + return path, fmt.Errorf("unable to find font: %s", path) } return path, nil