Show missing environment variable name in failure message for Env.expect.

This commit is contained in:
Dillon Kearns 2022-02-06 13:37:13 -08:00
parent e3883e669f
commit 290f36867c

View File

@ -34,6 +34,6 @@ expect envVariableName =
|> DataSource.andThen
(\maybeValue ->
maybeValue
|> Result.fromMaybe "Couldn't find env variable"
|> Result.fromMaybe ("DataSource.Env.expect was expecting a variable `" ++ envVariableName ++ "` but couldn't find a variable with that name.")
|> DataSource.fromResult
)