Skip to content

Commit f883c02

Browse files
authored
Merge pull request #457 from Caesarsage/fix/watcher-swallowed-config-error
fix(watcher): log swallowed config-load error instead of discarding it
2 parents 9a4fc69 + 3455cb3 commit f883c02

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)