From feacca3c5caffb11be1f5f7cbfef01400b5bc944 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Tue, 3 Sep 2019 16:34:04 -0300 Subject: all: use fmt.Errorf for fomartting errors Signed-off-by: Wagner Riffel --- config/bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/bindings.go b/config/bindings.go index 46e6924..a19d4f3 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -122,7 +122,7 @@ func ParseKeyStrokes(keystrokes string) ([]KeyStroke, error) { if key, ok := keyNames[strings.ToLower(name)]; ok { strokes = append(strokes, key) } else { - return nil, errors.New(fmt.Sprintf("Unknown key '%s'", name)) + return nil, fmt.Errorf("Unknown key '%s'", name) } case '>': return nil, errors.New("Found '>' without '<'") -- cgit 1.4.1-2-gfad0