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>
pull/54/head
Alvaro Herrera 5 years ago
parent b060dbe000
commit 89a7d21dfc
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
  1. 2
      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);
}
/*

Loading…
Cancel
Save