diff options
author | David Chen <weichen2000121@gmail.com> | 2019-12-06 22:39:41 -0800 |
---|---|---|
committer | David Chen <weichen2000121@gmail.com> | 2019-12-06 22:39:41 -0800 |
commit | 7194dfa43c1c1be5be4a2a5d44afa9f0e95eed44 (patch) | |
tree | 2242009558d2e9bfc8bbe3dbe42ff338cb2d7907 /pkg/gui | |
parent | e425f1df871ecd3ea96214ed51acfa8c3db0896e (diff) |
better error messages
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/keybindings.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 558038714..2b0719189 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -338,14 +338,14 @@ func (gui *Gui) getKey(name string) interface{} { if len(key) > 1 { binding := keymap[strings.ToLower(key)] if binding == nil { - log.Fatal("Unrecognized binding: " + strings.ToLower(key)) + log.Fatalf("Unrecognized key %s for keybinding %s", strings.ToLower(key), name) } else { return binding } } else if len(key) == 1 { return []rune(key)[0] } - log.Fatal("Key empty for function: " + strings.ToLower(name)) + log.Fatal("Key empty for keybinding: " + strings.ToLower(name)) return nil } |