mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
move handling of RecoverFromErrors into LoadConfig
This commit is contained in:
parent
1383190249
commit
7154f14781
2 changed files with 7 additions and 3 deletions
|
|
@ -686,6 +686,12 @@ func LoadConfig(filename string) (config *Config, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
// RecoverFromErrors defaults to true
|
||||
if config.Debug.RecoverFromErrors == nil {
|
||||
config.Debug.RecoverFromErrors = new(bool)
|
||||
*config.Debug.RecoverFromErrors = true
|
||||
}
|
||||
|
||||
// casefold/validate server name
|
||||
config.Server.nameCasefolded, err = Casefold(config.Server.Name)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue