mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 13:16:08 +03:00
Show missing environment variable name in failure message for Env.expect.
This commit is contained in:
parent
e3883e669f
commit
290f36867c
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user