Skip to content

Commit

Permalink
Overhauled some diagnostic messages akin to 1b05b9bbcebf.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluknet committed Mar 22, 2024
1 parent e4a062b commit ae1948a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/http/modules/ngx_http_referer_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/http/modules/ngx_http_ssi_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/mail/ngx_mail_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/stream/ngx_stream_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ae1948a

Please sign in to comment.