aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql')
-rw-r--r--src/bin/psql/command.c2
-rw-r--r--src/bin/psql/copy.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index e27ff8c6501..e16b4d54c24 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -270,7 +270,7 @@ exec_command(const char *cmd,
pw = getpwuid(user_id);
if (!pw)
{
- psql_error("could not get home directory for user id %ld: %s\n",
+ psql_error("could not get home directory for user ID %ld: %s\n",
(long) user_id,
errno ? strerror(errno) : _("user does not exist"));
exit(EXIT_FAILURE);
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index c759abfc855..4b749154adf 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -343,8 +343,8 @@ do_copy(const char *args)
/* make sure the specified file is not a directory */
if ((result = fstat(fileno(copystream), &st)) < 0)
- psql_error("could not stat file: %s\n",
- strerror(errno));
+ psql_error("could not stat file \"%s\": %s\n",
+ options->file, strerror(errno));
if (result == 0 && S_ISDIR(st.st_mode))
psql_error("%s: cannot copy from/to a directory\n",