summaryrefslogtreecommitdiff
path: root/src/bin/psql/copy.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2014-08-29 00:01:34 -0400
committerPeter Eisentraut <peter_e@gmx.net>2014-08-29 00:01:34 -0400
commitc573e9d7760869a0db6343b2a7353309045e05ab (patch)
tree4bca40edefa8b9928fa28b37d911d332521c069e /src/bin/psql/copy.c
parentf41381e240f4312017f9f70fea194e59d8cc3a2e (diff)
Assorted message improvements
Diffstat (limited to 'src/bin/psql/copy.c')
-rw-r--r--src/bin/psql/copy.c4
1 files changed, 2 insertions, 2 deletions
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",