Skip to content

Commit f25e0bf

Browse files
committed
Small message fixes
1 parent 3dad73e commit f25e0bf

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ check_locale_name(int category, const char *locale, char **canonname)
25482548
save = setlocale(category, NULL);
25492549
if (!save)
25502550
{
2551-
fprintf(stderr, _("%s: setlocale failed\n"),
2551+
fprintf(stderr, _("%s: setlocale() failed\n"),
25522552
progname);
25532553
exit(1);
25542554
}

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,13 +1123,13 @@ update_tablespace_symlink(Oid oid, const char *old_dir)
11231123

11241124
if (unlink(linkloc) != 0 && errno != ENOENT)
11251125
{
1126-
fprintf(stderr, _("%s: could not remove symbolic link \"%s\": %s"),
1126+
fprintf(stderr, _("%s: could not remove symbolic link \"%s\": %s\n"),
11271127
progname, linkloc, strerror(errno));
11281128
disconnect_and_exit(1);
11291129
}
11301130
if (symlink(new_dir, linkloc) != 0)
11311131
{
1132-
fprintf(stderr, _("%s: could not create symbolic link \"%s\": %s"),
1132+
fprintf(stderr, _("%s: could not create symbolic link \"%s\": %s\n"),
11331133
progname, linkloc, strerror(errno));
11341134
disconnect_and_exit(1);
11351135
}

src/bin/pg_dump/pg_backup_tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ _tarAddFile(ArchiveHandle *AH, TAR_MEMBER *th)
10831083
fseeko(tmp, 0, SEEK_END);
10841084
th->fileLen = ftello(tmp);
10851085
if (th->fileLen < 0)
1086-
exit_horribly(modulename, "could not determine seek position in file: %s\n",
1086+
exit_horribly(modulename, "could not determine seek position in archive file: %s\n",
10871087
strerror(errno));
10881088
fseeko(tmp, 0, SEEK_SET);
10891089

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ main(int argc, char **argv)
582582
}
583583

584584
if (if_exists && !outputClean)
585-
exit_horribly(NULL, "option --if-exists requires -c/--clean option\n");
585+
exit_horribly(NULL, "option --if-exists requires option -c/--clean\n");
586586

587587
/* Identify archive format to emit */
588588
archiveFormat = parseArchiveFormat(format, &archiveMode);

src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ main(int argc, char *argv[])
338338

339339
if (if_exists && !output_clean)
340340
{
341-
fprintf(stderr, _("%s: option --if-exists requires -c/--clean option\n"),
341+
fprintf(stderr, _("%s: option --if-exists requires option -c/--clean\n"),
342342
progname);
343343
exit_nicely(1);
344344
}

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ main(int argc, char **argv)
340340

341341
if (if_exists && !opts->dropSchema)
342342
{
343-
fprintf(stderr, _("%s: option --if-exists requires -c/--clean option\n"),
343+
fprintf(stderr, _("%s: option --if-exists requires option -c/--clean\n"),
344344
progname);
345345
exit_nicely(1);
346346
}

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ PrintNewControlValues()
683683

684684
if (set_xid_epoch != -1)
685685
{
686-
printf(_("NextXID Epoch: %u\n"),
686+
printf(_("NextXID epoch: %u\n"),
687687
ControlFile.checkPointCopy.nextXidEpoch);
688688
}
689689
}

src/bin/psql/command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
25092509
if (popt->topt.default_footer)
25102510
printf(_("Default footer (%s) is on.\n"), param);
25112511
else
2512-
printf(_("Default footer (%s) is off."), param);
2512+
printf(_("Default footer (%s) is off.\n"), param);
25132513
}
25142514

25152515
/* show format */

src/common/username.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ get_user_name(char **errstr)
4242
pw = getpwuid(user_id);
4343
if (!pw)
4444
{
45-
*errstr = psprintf(_("failed to look up effective user id %ld: %s"),
45+
*errstr = psprintf(_("could not look up effective user ID %ld: %s"),
4646
(long) user_id,
4747
errno ? strerror(errno) : _("user does not exist"));
4848
return NULL;

src/pl/plpgsql/src/pl_handler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ _PG_init(void)
153153
NULL, NULL, NULL);
154154

155155
DefineCustomBoolVariable("plpgsql.print_strict_params",
156-
gettext_noop("Print information about parameters in the DETAIL part of the error messages generated on INTO .. STRICT failures."),
156+
gettext_noop("Print information about parameters in the DETAIL part of the error messages generated on INTO ... STRICT failures."),
157157
NULL,
158158
&plpgsql_print_strict_params,
159159
false,
160160
PGC_USERSET, 0,
161161
NULL, NULL, NULL);
162162

163163
DefineCustomStringVariable("plpgsql.extra_warnings",
164-
gettext_noop("List of programming constructs which should produce a warning."),
164+
gettext_noop("List of programming constructs that should produce a warning."),
165165
NULL,
166166
&plpgsql_extra_warnings_string,
167167
"none",
@@ -171,7 +171,7 @@ _PG_init(void)
171171
NULL);
172172

173173
DefineCustomStringVariable("plpgsql.extra_errors",
174-
gettext_noop("List of programming constructs which should produce an error."),
174+
gettext_noop("List of programming constructs that should produce an error."),
175175
NULL,
176176
&plpgsql_extra_errors_string,
177177
"none",

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