diff --git a/envconf.go b/envconf.go index 49f83dc..55a1e7d 100644 --- a/envconf.go +++ b/envconf.go @@ -128,7 +128,18 @@ func (c *Config) Status() (ok bool) { err := v.parsed.err if err != nil { ok = false - fmt.Fprintln(os.Stderr, err) + if !v.empty { + fmt.Fprintln(os.Stderr, err) + } + } + } + if !ok { + fmt.Fprintln(os.Stderr, "") + for _, v := range c.env { + err := v.parsed.err + if (err != nil) && v.empty { + fmt.Fprintln(os.Stderr, err) + } } } }