From 5c74e122ef295e251be43a8ce0c561e91fcd000d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 8 Oct 2026 10:49:09 +0200 Subject: [PATCH] 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. --- src/backend/libpq/be-secure-openssl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 9ccf8675e5e..11f5a483b36 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -599,8 +599,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);