From 3455cb3b2cede3c625c01701ed7bea43165f589d Mon Sep 17 00:00:00 2001 From: caesarsage Date: Sat, 13 Jun 2026 12:02:12 +0100 Subject: [PATCH] fix(watcher): log swallowed config-load error instead of discarding it Signed-off-by: caesarsage --- pkg/watcher/executor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/watcher/executor.go b/pkg/watcher/executor.go index 3347fc60..ac7362bb 100644 --- a/pkg/watcher/executor.go +++ b/pkg/watcher/executor.go @@ -12,7 +12,8 @@ func TriggerImport(entry config.WatchEntry) { // Retrieve config to get client options. cfgPath, err := config.DefaultLocalConfigPath() if err != nil { - fmt.Errorf("Error while loading config: %s", err.Error()) + fmt.Printf("[ERROR] Error while loading config: %s\n", err.Error()) + return } fmt.Println("[INFO] Re-importing changed file: " + entry.FilePath)