Skip to content

Commit 562e9b1

Browse files
authored
Only include envvar key on error to avoid leaking information (#127)
1 parent 05a905f commit 562e9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

envconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ func processWith(ctx context.Context, c *Config) error {
546546

547547
// Set value.
548548
if err := processField(val, ef, delimiter, separator, noInit); err != nil {
549-
return fmt.Errorf("%s(%q): %w", tf.Name, val, err)
549+
return fmt.Errorf("%s: %w", tf.Name, err)
550550
}
551551
}
552552

0 commit comments

Comments
 (0)