diff options
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 766257c8a..3c5f789fe 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -140,11 +140,19 @@ int main(int argc, char *const *argv) cycle = ngx_init_cycle(&init_cycle); if (cycle == NULL) { + if (ngx_test_config) { + ngx_log_error(NGX_LOG_EMERG, log, 0, + "the configuration file %s test failed", + init_cycle.conf_file.data); + } + return 1; } if (ngx_test_config) { - ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "config syntax is ok"); + ngx_log_error(NGX_LOG_INFO, log, 0, + "the configuration file %s was tested successfully", + init_cycle.conf_file.data); return 0; } |