summaryrefslogtreecommitdiff
path: root/src/common/exec.c
diff options
context:
space:
mode:
authorPeter Eisentraut2021-04-23 12:18:11 +0000
committerPeter Eisentraut2021-04-23 12:21:37 +0000
commit82c3cd974131d7fa1cfcd07cebfb04fffe26ee35 (patch)
tree5e165fd8be0892ede2d4591ad32b559794fce887 /src/common/exec.c
parent9486844f301e265a3ad11b612decaba2462c3c15 (diff)
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
Diffstat (limited to 'src/common/exec.c')
-rw-r--r--src/common/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/exec.c b/src/common/exec.c
index 66c3aa6acc..81b810d4cf 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
{