Propagate error from parsing keybinding (#129)
This commit is contained in:
parent
8d8c84cbf4
commit
bf7dd663c1
@ -62,7 +62,10 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
|
||||
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, bindStr)
|
||||
|
||||
keys, err := keybinding.ParseAll(bindStr)
|
||||
if err == nil && keys != nil && len(keys) > 0 {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if keys != nil && len(keys) > 0 {
|
||||
parsedKeys = keys
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user