1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

Assorted message improvements

This commit is contained in:
Peter Eisentraut
2014-08-29 00:01:34 -04:00
parent 14b7c8f2d0
commit 65c9dc231a
8 changed files with 12 additions and 12 deletions

View File

@ -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",