Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error reporting when JWT_SECRET is missing #3

Closed
FranklinChen opened this issue Feb 8, 2019 · 1 comment
Closed

Better error reporting when JWT_SECRET is missing #3

FranklinChen opened this issue Feb 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@FranklinChen
Copy link

I forgot to follow the full instructions and did not set JWT_SECRET and got an infinite loop when running Yesod and was mystified for a long time before I figured out it was because I did not set JWT_SECRET. Could this app check for the missing environment variable and report that?

$ stack exec -- yesod devel
...
Starting devel application
devel.hs: Could not convert to expected type: expected Text, encountered Null
CallStack (from HasCallStack):
  error, called at src/Data/Yaml/Config.hs:201:20 in yaml-0.11.0.0-GAWf3vpOhGMK7o9d6zMyJu:Data.Yaml.Config
Unexpected: child process exited with ExitFailure 1
Trying again
Starting devel application
devel.hs: Could not convert to expected type: expected Text, encountered Null
CallStack (from HasCallStack):
  error, called at src/Data/Yaml/Config.hs:201:20 in yaml-0.11.0.0-GAWf3vpOhGMK7o9d6zMyJu:Data.Yaml.Config
Unexpected: child process exited with ExitFailure 1
Trying again
Starting devel application
devel.hs: Could not convert to expected type: expected Text, encountered Null
CallStack (from HasCallStack):
  error, called at src/Data/Yaml/Config.hs:201:20 in yaml-0.11.0.0-GAWf3vpOhGMK7o9d6zMyJu:Data.Yaml.Config
Unexpected: child process exited with ExitFailure 1
Trying again
@tzemanovic
Copy link
Owner

Thanks for the feedback! Will add that in

@tzemanovic tzemanovic added the enhancement New feature or request label Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants