summaryrefslogtreecommitdiff
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:10:37 -0400
commitea8480a2493e396715e2fa0709c137b513a680aa (patch)
treecdb3c0219e3fa90c0d5fb6c1a7984c5f8859072e /src
parent41753604b3d06a4ca0ee4ce9f008e9b0709230c7 (diff)
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>)
{