filelist/osksdl: just use fmt.Errorf to create an error

This commit is contained in:
Clayton Craft
2023-02-12 20:55:08 -08:00
parent 5e07b63084
commit e00e5faf6e

View File

@@ -130,7 +130,7 @@ func getOskConfFontPath(oskConfPath string) (string, error) {
} }
} }
if !misc.Exists(path) { 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 return path, nil