Skip to content

Commit 009bd23

Browse files
committed
Fix error message wordings
The original patch for percentrepl.c c96de2c adopted the error messages from basebackup_to_shell, but that uses terminology that doesn't really fit with the new API naming.
1 parent 093e5c5 commit 009bd23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/percentrepl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ replace_percent_placeholders(const char *instr, const char *param_name, const ch
113113
va_end(ap);
114114
if (!found)
115115
{
116-
/* Unknown escape sequence */
116+
/* Unknown placeholder */
117117
#ifdef FRONTEND
118118
pg_log_error("invalid value for parameter \"%s\": \"%s\"", param_name, instr);
119-
pg_log_error_detail("String contains unexpected escape sequence \"%c\".", *sp);
119+
pg_log_error_detail("String contains unexpected placeholder \"%%%c\".", *sp);
120120
exit(1);
121121
#else
122122
ereport(ERROR,
123123
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
124124
errmsg("invalid value for parameter \"%s\": \"%s\"", param_name, instr),
125-
errdetail("String contains unexpected escape sequence \"%c\".", *sp));
125+
errdetail("String contains unexpected placeholder \"%%%c\".", *sp));
126126
#endif
127127
}
128128
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy