diff --git a/envconf.go b/envconf.go index 780c499..c5ef0a4 100644 --- a/envconf.go +++ b/envconf.go @@ -302,7 +302,7 @@ func (c *Config) getRawMap(key string, dtype DataType) (empty map[string]cValue) if ok { for k, v := range entries { - if v.dtype == dtype { + if (v.dtype == dtype) && (v.parsed.err == nil) { retval[k] = v.parsed } else { return