projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea0924
)
createuser: Change a fprintf to pg_log_error
author
Peter Eisentraut
<peter@eisentraut.org>
Wed, 8 Apr 2020 17:19:45 +0000
(19:19 +0200)
committer
Peter Eisentraut
<peter@eisentraut.org>
Wed, 8 Apr 2020 17:26:09 +0000
(19:26 +0200)
src/bin/scripts/createuser.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/scripts/createuser.c
b/src/bin/scripts/createuser.c
index cf32fbe1bc8e0072388809bdf4e3acf3ac03231e..ebdb72a45ccff70a7d0aabaa805d30a924e87638 100644
(file)
--- a/
src/bin/scripts/createuser.c
+++ b/
src/bin/scripts/createuser.c
@@
-147,9
+147,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;