Skip to content

Commit 3455cb3

Browse files
committed
fix(watcher): log swallowed config-load error instead of discarding it
Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
1 parent 9a4fc69 commit 3455cb3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/watcher/executor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ func TriggerImport(entry config.WatchEntry) {
1212
// Retrieve config to get client options.
1313
cfgPath, err := config.DefaultLocalConfigPath()
1414
if err != nil {
15-
fmt.Errorf("Error while loading config: %s", err.Error())
15+
fmt.Printf("[ERROR] Error while loading config: %s\n", err.Error())
16+
return
1617
}
1718

1819
fmt.Println("[INFO] Re-importing changed file: " + entry.FilePath)

0 commit comments

Comments
 (0)