createuser: Change a fprintf to pg_log_error
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 8 Apr 2020 17:19:45 +0000 (19:19 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 8 Apr 2020 17:26:09 +0000 (19:26 +0200)
src/bin/scripts/createuser.c

index cf32fbe1bc8e0072388809bdf4e3acf3ac03231e..ebdb72a45ccff70a7d0aabaa805d30a924e87638 100644 (file)
@@ -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;