Skip to content

Commit

Permalink
fixup! Validate keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Feb 17, 2025
1 parent 7dc4e1f commit 66f6300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/user_config_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"fmt"
"log"
"reflect"
"slices"
"strings"
Expand Down Expand Up @@ -64,7 +65,7 @@ func validateKeybindingsRecurse(path string, node any) error {
strings.ToLower(key), path, constants.Links.Docs.CustomKeybindings)
}
} else {
panic("Unexpected type")
log.Fatalf("Unexpected type for property '%s': %s", path, value.Kind())
}
return nil
}
Expand Down

0 comments on commit 66f6300

Please sign in to comment.