Skip to content

Commit

Permalink
fix: warn uninitialised envs instead of error (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Jan 23, 2025
1 parent 60b221e commit 337aacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ func (c *config) Validate(fsys fs.FS) error {

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

0 comments on commit 337aacd

Please sign in to comment.