Skip to content

Commit e7d7bf6

Browse files
authored
fix: Add info to error when value is invalid (#117)
1 parent 9a152a9 commit e7d7bf6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

getenv.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ func Env[T internal.EnvParsable](key string, options ...option.Option) (T, error
7777
return t, fmt.Errorf("failed to get environment variable[%s]: %w", key, ErrNotSet)
7878
}
7979

80-
if errors.Is(err, internal.ErrInvalidValue) {
81-
return t, fmt.Errorf("failed to parse environment variable[%s]: %w", key, ErrInvalidValue)
82-
}
83-
8480
return t, fmt.Errorf("failed to parse environment variable[%s]: %w", key, err)
8581
}
8682

0 commit comments

Comments
 (0)