You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `{:system, :integer, "ENV_NAME"}` - same as `{:system, :integer, "ENV_NAME", nil}`;
For me, I get an ArgumentError when using {:system, :integer, "ENV_NAME"}:
**(Mix) Could notstartapplicationexample: exitedin: Example.Application.start(:normal,[])**(EXIT)anexceptionwasraised:**(ArgumentError)can't fetch value for key `Example.Config` of application `:example`, can not resolve key ENV_NAME value via adapter Elixir.Confex.Adapters.SystemEnvironment
But it works fine when using {:system, :integer, "ENV_NAME", nil}. So, it is not the same.
The text was updated successfully, but these errors were encountered:
@janpieper good catch, feel free to send a PR to fix the documentation. It should raise indeed because often if you don't have defaults you won't want to end up loading invalid configuration.
Maybe I am wrong, but this doesn't feel to be the truth:
confex/lib/confex.ex
Line 52 in fa436d1
For me, I get an
ArgumentError
when using{:system, :integer, "ENV_NAME"}
:But it works fine when using
{:system, :integer, "ENV_NAME", nil}
. So, it is not the same.The text was updated successfully, but these errors were encountered: