From 86a35f5947cea9d27c9bc343c79da6c3931b4e92 Mon Sep 17 00:00:00 2001 From: Oarkflow Date: Fri, 5 Sep 2025 21:43:43 +0545 Subject: [PATCH] update --- services/loader.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/services/loader.go b/services/loader.go index 8bc9d47..5442c1f 100644 --- a/services/loader.go +++ b/services/loader.go @@ -335,13 +335,17 @@ func readCaches(path string, cfg *UserConfig) error { } func readCredentials(path string, cfg *UserConfig) error { - if err := readDatabases(path, cfg); err != nil { + if err := readDatabases(path, cfg); err != nil && !os.IsNotExist(err) { return err } - if err := readStorages(path, cfg); err != nil { + if err := readStorages(path, cfg); err != nil && !os.IsNotExist(err) { return err } - return readCaches(path, cfg) + err := readCaches(path, cfg) + if !os.IsNotExist(err) { + return err + } + return nil } func readConfig(path string, cfg *UserConfig) error {