createuser: Change a fprintf to pg_log_error
authorPeter Eisentraut
Wed, 8 Apr 2020 17:19:45 +0000 (19:19 +0200)
committerPeter Eisentraut
Wed, 8 Apr 2020 17:26:35 +0000 (19:26 +0200)
src/bin/scripts/createuser.c

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