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

z_config: report config file parse errors, and terminate. #234

Merged

Conversation

kaos
Copy link
Member

@kaos kaos commented Oct 19, 2011

This satisfies "We should add some pre-flight/sanity checks to the config parser and fail with clear messages." from issue #5.

Sample error message (in this case, a missing comma):

=ERROR REPORT==== 19-Oct-2011::16:52:52 ===
z_config:122 failed to parse: /opt/zotonic/priv/config: 38: syntax error before: '{'

This satisfies "We should add some pre-flight/sanity checks to the config parser and fail with clear messages." from issue zotonic#5.

Sample error message (in this case, a missing comma):

=ERROR REPORT==== 19-Oct-2011::16:52:52 ===
z_config:122 failed to parse: /opt/zotonic/priv/config: 38: syntax error before: '{'
@mworrell
Copy link
Member

Looks good to me.

Thanks for the patch!

mworrell added a commit that referenced this pull request Oct 19, 2011
…g_parse_error

z_config: report config file parse errors, and terminate.
Refers to issue #5.
@mworrell mworrell merged commit 2d4275e into zotonic:master Oct 19, 2011
rpip pushed a commit to rpip/zotonic that referenced this pull request Aug 12, 2013
…n_config_parse_error

z_config: report config file parse errors, and terminate.
Refers to issue zotonic#5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants