diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-05-17 21:33:13 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-05-17 21:33:47 +0200 |
commit | 009bd237bf6db64ea1131df71f19a529b119fbef (patch) | |
tree | d3f19f01300bf3035006f94407cdeba15458f88a /src | |
parent | 093e5c57d506783a95dd8feddd9a3f2651e1aeba (diff) | |
download | postgresql-009bd237bf6db64ea1131df71f19a529b119fbef.tar.gz postgresql-009bd237bf6db64ea1131df71f19a529b119fbef.zip |
Fix error message wordings
The original patch for percentrepl.c c96de2ce17 adopted the error
messages from basebackup_to_shell, but that uses terminology that
doesn't really fit with the new API naming.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/percentrepl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/percentrepl.c b/src/common/percentrepl.c index d78571fec0a..7aa85fdc940 100644 --- a/src/common/percentrepl.c +++ b/src/common/percentrepl.c @@ -113,16 +113,16 @@ replace_percent_placeholders(const char *instr, const char *param_name, const ch va_end(ap); if (!found) { - /* Unknown escape sequence */ + /* Unknown placeholder */ #ifdef FRONTEND pg_log_error("invalid value for parameter \"%s\": \"%s\"", param_name, instr); - pg_log_error_detail("String contains unexpected escape sequence \"%c\".", *sp); + pg_log_error_detail("String contains unexpected placeholder \"%%%c\".", *sp); exit(1); #else ereport(ERROR, errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("invalid value for parameter \"%s\": \"%s\"", param_name, instr), - errdetail("String contains unexpected escape sequence \"%c\".", *sp)); + errdetail("String contains unexpected placeholder \"%%%c\".", *sp)); #endif } } |