Added setting description

This commit is contained in:
Jamie Curnow
2021-07-26 11:58:57 +10:00
parent 5ec02d8cb0
commit bc2bd67cda
4 changed files with 30 additions and 7 deletions

View File

@@ -10,6 +10,10 @@ func ApplySettings() {
logger.Debug("Applying Settings")
// Error-reporting
m, _ := GetByName("error-reporting")
config.ErrorReporting = m.Value.Decoded.(bool)
m, err := GetByName("error-reporting")
if err != nil {
logger.Error("ApplySettingsError", err)
} else {
config.ErrorReporting = m.Value.Decoded.(bool)
}
}