Skip to content

Commit 337aacd

Browse files
authored
fix: warn uninitialised envs instead of error (#3065)
1 parent 60b221e commit 337aacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ func (c *config) Validate(fsys fs.FS) error {
771771

772772
func assertEnvLoaded(s string) error {
773773
if matches := envPattern.FindStringSubmatch(s); len(matches) > 1 {
774-
return errors.Errorf(`Error evaluating "%s": environment variable %s is unset.`, s, matches[1])
774+
fmt.Fprintln(os.Stderr, "WARN: environment variable is unset:", matches[1])
775775
}
776776
return nil
777777
}

0 commit comments

Comments
 (0)