Previously, only the final error return statement in validateNginxConfHasPort() would log the message that the {{port}} template is missing. On any errors before that statement (like varify returning exit 1), no messages were logged that lets a user know that {{port}} template is missing for the listen directive.
Previously, only the final error return statement in
validateNginxConfHasPort()
would log the message that the{{port}}
template is missing. On any errors before that statement (likevarify
returning exit 1), no messages were logged that lets a user know that{{port}}
template is missing for thelisten
directive.Fixes https://github.com/cloudfoundry/nginx-buildpack/issues/253