1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Fix warning message translatability

Pasting together sentences with placeholders is not suitable for
translation.  Write out both variants instead.

Fix comma splice in the detail message while we're here.
This commit is contained in:
Peter Eisentraut
2026-10-08 10:49:09 +02:00
parent f56360fcd1
commit fb632ec91f

View File

@@ -602,8 +602,10 @@ error:
{
ereport(WARNING,
errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("SSL configuration not reloaded, SNI remains %s", SSL_hosts->sni_enabled ? "on" : "off"),
errdetail("The SSL configuration failed to reload, previous configuration and SNI state will remain active."));
SSL_hosts->sni_enabled ?
errmsg("SSL configuration not reloaded, SNI remains on") :
errmsg("SSL configuration not reloaded, SNI remains off"),
errdetail("The SSL configuration failed to reload; the previous configuration and SNI state will remain active."));
}
MemoryContextSwitchTo(oldcxt);