Propagate error from parsing keybinding (#129)

This commit is contained in:
Anatoli Babenia 2019-12-26 12:35:50 +03:00
parent 8d8c84cbf4
commit bf7dd663c1

View File

@ -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
}