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

fix(cli) catch compilation errors of nginx config templates #3294

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

thibaultcha
Copy link
Member

Prior to this patch, an error in the Penlight template for custom nginx
configurations would result in compile_conf() returning nil, which
would result in errors later in the execution path (trying to write a
nil value at <prefix>/nginx-kong.conf instead of a string).

This fix now catches errors returned by pl_template.substitute.

Prior to this patch, an error in the Penlight template for custom nginx
configurations would result in `compile_conf()` returning `nil`, which
would result in errors later in the execution path (trying to write a
`nil` value at `<prefix>/nginx-kong.conf` instead of a `string`).

This fix now catches errors returned by `pl_template.substitute`.
@thibaultcha thibaultcha force-pushed the fix/catch-template-errors branch from 15c4550 to f4b5952 Compare March 13, 2018 21:30
Copy link
Member

@Tieske Tieske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@Tieske
Copy link
Member

Tieske commented Mar 13, 2018

approved pending a flaky test (restarted it in CI)

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.

2 participants