As a user, I want my configuration to error when referencing an environment variable that doesn't exist instead of receiving an empty string and unpredictable behavior for my configuration.
Currently, the envvar() function returns an empty string when the referenced variable doesn't exist. This may be desirable, but it may also lead to other issues with the configuration.
Summary of the new feature / enhancement
Currently, the
envvar()
function returns an empty string when the referenced variable doesn't exist. This may be desirable, but it may also lead to other issues with the configuration.Proposed technical implementation details (optional)
The
envvar()
function should either:In the latter case, this would enable some flexibility for users while defaulting to a stricter behavior.