nginx-0.0.3-2004-04-18-23:06:02 import
diff --git a/src/core/nginx.c b/src/core/nginx.c index 766257c..3c5f789 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c
@@ -140,11 +140,19 @@ 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; }