]> git.kaiwu.me - nginx.git/commitdiff
Overhauled some diagnostic messages akin to 1b05b9bbcebf.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 22 Mar 2024 10:51:14 +0000 (14:51 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 22 Mar 2024 10:51:14 +0000 (14:51 +0400)
src/http/modules/ngx_http_referer_module.c
src/http/modules/ngx_http_ssi_filter_module.c
src/mail/ngx_mail_core_module.c
src/stream/ngx_stream_core_module.c

index 599dd3a12978d2f45b4db638255dba52aa4d152a..11a681b84d48fcb60943b2b6293fa7c583f9ea9f 100644 (file)
@@ -631,7 +631,7 @@ ngx_http_add_regex_referer(ngx_conf_t *cf, ngx_http_referer_conf_t *rlcf,
 #else
 
     ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                       "the using of the regex \"%V\" requires PCRE library",
+                       "using regex \"%V\" requires PCRE library",
                        name);
 
     return NGX_ERROR;
index e7601b83e7232daf7b4d36782fa2c37cd59c6983..0b84bd32249692e402885e9b215e615205fad001 100644 (file)
@@ -2001,7 +2001,7 @@ ngx_http_ssi_regex_match(ngx_http_request_t *r, ngx_str_t *pattern,
 #else
 
     ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
-                  "the using of the regex \"%V\" in SSI requires PCRE library",
+                  "using regex \"%V\" in SSI requires PCRE library",
                   pattern);
     return NGX_HTTP_SSI_ERROR;
 
index 487c5de8da8903b4b6caf33f0e8d505797c8db43..228a8d0a8beebd3ce79a783534796bfd45adfc09 100644 (file)
@@ -441,7 +441,7 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
             continue;
 #else
             ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                               "bind ipv6only is not supported "
+                               "ipv6only is not supported "
                                "on this platform");
             return NGX_CONF_ERROR;
 #endif
@@ -564,7 +564,7 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         }
 
         ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                           "the invalid \"%V\" parameter", &value[i]);
+                           "invalid parameter \"%V\"", &value[i]);
         return NGX_CONF_ERROR;
     }
 
index 31a34aee57cf9b491e2822ab580ddad40f6cb4eb..67129b5ed58e1ed7bc5bd16a4d05cd484ccd2978 100644 (file)
@@ -1036,7 +1036,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
             continue;
 #else
             ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                               "bind ipv6only is not supported "
+                               "ipv6only is not supported "
                                "on this platform");
             return NGX_CONF_ERROR;
 #endif
@@ -1164,7 +1164,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         }
 
         ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                           "the invalid \"%V\" parameter", &value[i]);
+                           "invalid parameter \"%V\"", &value[i]);
         return NGX_CONF_ERROR;
     }