aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2017-10-26 10:10:37 -0400
committerAndrew Dunstan <andrew@dunslane.net>2017-10-26 10:11:39 -0400
commit562c50a4bf551f972384ceab135ea53969299641 (patch)
treef6c1ba64f481c02e77d7ea02437623cded980790 /src
parentc6a3968889046e1367ec6f6054f776433237631f (diff)
downloadpostgresql-562c50a4bf551f972384ceab135ea53969299641.tar.gz
postgresql-562c50a4bf551f972384ceab135ea53969299641.zip
Improve gendef.pl diagnostic on failure to open sym file
There have been numerous buildfarm failures but the diagnostic is currently silent about the reason for failure to open the file. Let's see if we can get to the bottom of it. Backpatch to all live branches.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/gendef.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/gendef.pl b/src/tools/msvc/gendef.pl
index 8ccaab35519..04b0bbe6c79 100644
--- a/src/tools/msvc/gendef.pl
+++ b/src/tools/msvc/gendef.pl
@@ -29,7 +29,7 @@ sub dumpsyms
sub extract_syms
{
my ($symfile, $def) = @_;
- open(F, "<$symfile") || die "Could not open $symfile for $_\n";
+ open(F, "<$symfile") || die "Could not open $symfile for $_: $!\n";
while (<F>)
{