]> granicus.if.org Git - postgresql/commitdiff
Small message fixes
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 9 Aug 2014 04:07:00 +0000 (00:07 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 9 Aug 2014 04:07:29 +0000 (00:07 -0400)
src/bin/initdb/initdb.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_restore.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/psql/command.c
src/common/username.c
src/pl/plpgsql/src/pl_handler.c

index a3db0d2ef4ee33e0d784600d734d7ab07b64dfad..f884b02eac94c24be7145b11bec5dfb77763508b 100644 (file)
@@ -2552,7 +2552,7 @@ check_locale_name(int category, const char *locale, char **canonname)
        save = setlocale(category, NULL);
        if (!save)
        {
-               fprintf(stderr, _("%s: setlocale failed\n"),
+               fprintf(stderr, _("%s: setlocale() failed\n"),
                                progname);
                exit(1);
        }
index 5df2eb8c0db7c01827bbdb405eb82e8978d3c1c3..85f18a89820a672a12887f4a9990ba8c6d056df0 100644 (file)
@@ -1123,13 +1123,13 @@ update_tablespace_symlink(Oid oid, const char *old_dir)
 
                if (unlink(linkloc) != 0 && errno != ENOENT)
                {
-                       fprintf(stderr, _("%s: could not remove symbolic link \"%s\": %s"),
+                       fprintf(stderr, _("%s: could not remove symbolic link \"%s\": %s\n"),
                                        progname, linkloc, strerror(errno));
                        disconnect_and_exit(1);
                }
                if (symlink(new_dir, linkloc) != 0)
                {
-                       fprintf(stderr, _("%s: could not create symbolic link \"%s\": %s"),
+                       fprintf(stderr, _("%s: could not create symbolic link \"%s\": %s\n"),
                                        progname, linkloc, strerror(errno));
                        disconnect_and_exit(1);
                }
index aa06503fb04cfaba5e37b458d4782e9912e77136..457b742fa487d1b5cb2068a0e8a9d3c70a82e1b0 100644 (file)
@@ -1083,7 +1083,7 @@ _tarAddFile(ArchiveHandle *AH, TAR_MEMBER *th)
        fseeko(tmp, 0, SEEK_END);
        th->fileLen = ftello(tmp);
        if (th->fileLen < 0)
-               exit_horribly(modulename, "could not determine seek position in file: %s\n",
+               exit_horribly(modulename, "could not determine seek position in archive file: %s\n",
                                          strerror(errno));
        fseeko(tmp, 0, SEEK_SET);
 
index 493df5455ec803fabde40c9a3a3187cfded3474c..bbdc0c8213be4eb4c99a9f5c70b880c68ec6140a 100644 (file)
@@ -582,7 +582,7 @@ main(int argc, char **argv)
        }
 
        if (if_exists && !outputClean)
-               exit_horribly(NULL, "option --if-exists requires -c/--clean option\n");
+               exit_horribly(NULL, "option --if-exists requires option -c/--clean\n");
 
        /* Identify archive format to emit */
        archiveFormat = parseArchiveFormat(format, &archiveMode);
index bd19da661e8aec0eca8418cd03a20923269328e1..699a1af7b8f36878275dade6b06386eab75d3e02 100644 (file)
@@ -338,7 +338,7 @@ main(int argc, char *argv[])
 
        if (if_exists && !output_clean)
        {
-               fprintf(stderr, _("%s: option --if-exists requires -c/--clean option\n"),
+               fprintf(stderr, _("%s: option --if-exists requires option -c/--clean\n"),
                                progname);
                exit_nicely(1);
        }
index f7f3f51ed3550613d893d2e55e220fa4e9281009..dcb51090dbd26eae9f0e95297ab10a720b40eb57 100644 (file)
@@ -340,7 +340,7 @@ main(int argc, char **argv)
 
        if (if_exists && !opts->dropSchema)
        {
-               fprintf(stderr, _("%s: option --if-exists requires -c/--clean option\n"),
+               fprintf(stderr, _("%s: option --if-exists requires option -c/--clean\n"),
                                progname);
                exit_nicely(1);
        }
index 915a1ed64634ee1bace75a5358f2a3975d1c3aae..302d0054b2c9151031ee3af99cf676039d3c7d22 100644 (file)
@@ -683,7 +683,7 @@ PrintNewControlValues()
 
        if (set_xid_epoch != -1)
        {
-               printf(_("NextXID Epoch:                        %u\n"),
+               printf(_("NextXID epoch:                        %u\n"),
                           ControlFile.checkPointCopy.nextXidEpoch);
        }
 }
index 161de75b0acd873e3266126c67b9a10f76ecd386..741a72d9254cf0ba507485166aabc3434097e062 100644 (file)
@@ -2509,7 +2509,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
                if (popt->topt.default_footer)
                        printf(_("Default footer (%s) is on.\n"), param);
                else
-                       printf(_("Default footer (%s) is off."), param);
+                       printf(_("Default footer (%s) is off.\n"), param);
        }
 
        /* show format */
index 24c5b476278ce2cad121a831fd73cd78f616efa6..aa3ebeaa90e709382618a68d6684bd9b8d033967 100644 (file)
@@ -42,7 +42,7 @@ get_user_name(char **errstr)
        pw = getpwuid(user_id);
        if (!pw)
        {
-               *errstr = psprintf(_("failed to look up effective user id %ld: %s"),
+               *errstr = psprintf(_("could not look up effective user ID %ld: %s"),
                                                   (long) user_id,
                                                 errno ? strerror(errno) : _("user does not exist"));
                return NULL;
index e3e350c0f80e11c3d3d6aeda2dbf923667637a9d..f5238d6cadc2e72c465fa5e68af0f014f0294791 100644 (file)
@@ -153,7 +153,7 @@ _PG_init(void)
                                                         NULL, NULL, NULL);
 
        DefineCustomBoolVariable("plpgsql.print_strict_params",
-                                                        gettext_noop("Print information about parameters in the DETAIL part of the error messages generated on INTO .. STRICT failures."),
+                                                        gettext_noop("Print information about parameters in the DETAIL part of the error messages generated on INTO ... STRICT failures."),
                                                         NULL,
                                                         &plpgsql_print_strict_params,
                                                         false,
@@ -161,7 +161,7 @@ _PG_init(void)
                                                         NULL, NULL, NULL);
 
        DefineCustomStringVariable("plpgsql.extra_warnings",
-                                                          gettext_noop("List of programming constructs which should produce a warning."),
+                                                          gettext_noop("List of programming constructs that should produce a warning."),
                                                           NULL,
                                                           &plpgsql_extra_warnings_string,
                                                           "none",
@@ -171,7 +171,7 @@ _PG_init(void)
                                                           NULL);
 
        DefineCustomStringVariable("plpgsql.extra_errors",
-                                                          gettext_noop("List of programming constructs which should produce an error."),
+                                                          gettext_noop("List of programming constructs that should produce an error."),
                                                           NULL,
                                                           &plpgsql_extra_errors_string,
                                                           "none",