aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-08 19:38:46 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-08 19:38:46 -0400
commit89a7d21dfc9d891d2b3dcfea161b58d4ea458af6 (patch)
tree19de8ae334cdd3ef1be1ac0a55355d7085748118
parentb060dbe0001a1d6bf26cd294710f3cb203868d46 (diff)
downloadpostgresql-89a7d21dfc9d891d2b3dcfea161b58d4ea458af6.tar.gz
postgresql-89a7d21dfc9d891d2b3dcfea161b58d4ea458af6.zip
pg_restore: Provide file name with one failure message
Almost all error messages already include file name where relevant, but this one had been overlooked. Repair. Backpatch to 9.5. Author: Euler Taveira <euler.taveira@2ndquadrant.com> Discussion: https://postgr.es/m/CAH503wA_VOrcKL_43p9atRejCDYmOZ8MzfK9S6TJrQqBqNeAXA@mail.gmail.com Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
-rw-r--r--src/bin/pg_dump/pg_backup_directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c
index c9cce5ed8a4..f178d6ac219 100644
--- a/src/bin/pg_dump/pg_backup_directory.c
+++ b/src/bin/pg_dump/pg_backup_directory.c
@@ -397,7 +397,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);
}
/*