Verify that all settings have correct type

This prevents crashes that occur when the user has put the wrong
type for a setting manually in the settings.json file.
This commit is contained in:
Zachary Yedidia
2020-06-07 17:31:16 -04:00
parent 44c1929f9d
commit 140662f1ec
3 changed files with 35 additions and 3 deletions

View File

@@ -243,7 +243,10 @@ func main() {
if err != nil {
screen.TermMessage(err)
}
config.InitGlobalSettings()
err = config.InitGlobalSettings()
if err != nil {
screen.TermMessage(err)
}
// flag options
for k, v := range optionFlags {