postgres.git / summary / log / commit / refs
commit 41b4b2a7cffc3f437aa19751f2055a2918429d33
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Wed Apr 08 17:19:45 2020 +0000
First released in: 13.0, 12.3
createuser: Change a fprintf to pg_log_error
src/bin/scripts/createuser.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c
index c65bb2958de..e17ae2ea32c 100644
--- a/src/bin/scripts/createuser.c
+++ b/src/bin/scripts/createuser.c
@@ -152,9 +152,8 @@ main(int argc, char *argv[])
conn_limit = strtol(optarg, &endptr, 10);
if (*endptr != '\0' || conn_limit < -1) /* minimum valid value */
{
- fprintf(stderr,
- _("%s: invalid value for --connection-limit: %s\n"),
- progname, optarg);
+ pg_log_error("invalid value for --connection-limit: %s",
+ optarg);
exit(1);
}
break;
[parent: 983ed99a60ae]