projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac0e30e
)
pg_restore: Provide file name with one failure message
author
Alvaro Herrera
Fri, 8 May 2020 23:38:46 +0000
(19:38 -0400)
committer
Alvaro Herrera
Fri, 8 May 2020 23:38:46 +0000
(19:38 -0400)
Almost all error messages already include file name where relevant, but
this one had been overlooked. Repair.
Backpatch to 9.5.
Author: Euler Taveira
Discussion: https://postgr.es/m/CAH503wA_VOrcKL_43p9atRejCDYmOZ8MzfK9S6TJrQqBqNeAXA@mail.gmail.com
Reviewed-by: Álvaro Herrera
src/bin/pg_dump/pg_backup_directory.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_backup_directory.c
b/src/bin/pg_dump/pg_backup_directory.c
index e1afecfa6e0bc5bb31b230f590e949745fe754ce..dbe8b3836df8ebf45df2e8ddaf6acd94a95a1342 100644
(file)
--- a/
src/bin/pg_dump/pg_backup_directory.c
+++ b/
src/bin/pg_dump/pg_backup_directory.c
@@
-400,7
+400,7
@@
_PrintFileData(ArchiveHandle *AH, char *filename)
free(buf);
if (cfclose(cfp) !=0)
- fatal("could not close data file
: %m"
);
+ fatal("could not close data file
\"%s\": %m", filename
);
}
/*