From 5ddfa9f7f6072db568e9d913d1ff8488690ecf0c Mon Sep 17 00:00:00 2001 From: buengese Date: Sat, 9 Nov 2019 00:05:33 +0100 Subject: [PATCH] config: SetValueAndSave ignore error if config section does not exist yet --- fs/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/config/config.go b/fs/config/config.go index 7f8ac827c..0b896b36b 100644 --- a/fs/config/config.go +++ b/fs/config/config.go @@ -575,7 +575,7 @@ func SetValueAndSave(name, key, value string) (err error) { _, err = reloadedConfigFile.GetSection(name) if err != nil { // Section doesn't exist yet so ignore reload - return err + return nil } // Update the config file with the reloaded version configFile = reloadedConfigFile