From 82c3cd974131d7fa1cfcd07cebfb04fffe26ee35 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 23 Apr 2021 14:18:11 +0200 Subject: Factor out system call names from error messages Instead, put them in via a format placeholder. This reduces the number of distinct translatable messages and also reduces the chances of typos during translation. We already did this for the system call arguments in a number of cases, so this is just the same thing taken a bit further. Discussion: https://www.postgresql.org/message-id/flat/92d6f545-5102-65d8-3c87-489f71ea0a37%40enterprisedb.com --- src/common/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/exec.c') diff --git a/src/common/exec.c b/src/common/exec.c index 66c3aa6accf..81b810d4cfa 100644 --- a/src/common/exec.c +++ b/src/common/exec.c @@ -406,7 +406,7 @@ pclose_check(FILE *stream) { /* pclose() itself failed, and hopefully set errno */ log_error(errcode(ERRCODE_SYSTEM_ERROR), - _("pclose failed: %m")); + _("%s() failed: %m"), "pclose"); } else { -- cgit v1.2.3