aboutsummaryrefslogtreecommitdiffstats
path: root/config/bindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/bindings.go')
-rw-r--r--config/bindings.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/bindings.go b/config/bindings.go
index 46e69247..a19d4f35 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 '<'")