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

Avoid panic when defaultContentLanguage does not exist #4298

Closed
bep opened this Issue Jan 19, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@bep
Member

bep commented Jan 19, 2018

See https://discourse.gohugo.io/t/problem-when-updating-from-0-31-to-0-32-and-newer-panic-proc-not-found/10083

defaultContentLanguage = "en"

But there is no language definition for en in the project.

We should add a validation for this and give a clear and exit with an ERROR message.

The workaround for the thread starter is to change the above to pl (a valid and existing language code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment