summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2017-10-26 10:01:02 -0400
committerAndrew Dunstan <andrew@dunslane.net>2017-10-26 10:04:45 -0400
commita9d4625f485abd458f8fcc263f0003235430401e (patch)
treeed678feb473b178fd91672e9f1fa9ffdbf3893ce /src
parentaa828819aa59a84b486837b4cc3d7afc739332f5 (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 96122750f19..9b5bc081e16 100644
--- a/src/tools/msvc/gendef.pl
+++ b/src/tools/msvc/gendef.pl
@@ -32,7 +32,7 @@ sub dumpsyms
sub extract_syms
{
my ($symfile, $def) = @_;
- open(my $f, '<', $symfile) || die "Could not open $symfile for $_\n";
+ open(my $f, '<', $symfile) || die "Could not open $symfile for $_: $!\n";
while (<$f>)
{