Commit 89a7d21d authored by Alvaro Herrera's avatar Alvaro Herrera

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.comReviewed-by: default avatarÁlvaro Herrera <alvherre@alvh.no-ip.org>
parent b060dbe0
...@@ -397,7 +397,7 @@ _PrintFileData(ArchiveHandle *AH, char *filename) ...@@ -397,7 +397,7 @@ _PrintFileData(ArchiveHandle *AH, char *filename)
free(buf); free(buf);
if (cfclose(cfp) !=0) if (cfclose(cfp) !=0)
fatal("could not close data file: %m"); fatal("could not close data file \"%s\": %m", filename);
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment