From 351d9b7d4e2539de6dd6b948a5ba128f07032b0b Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Thu, 26 Oct 2017 10:10:37 -0400 Subject: [PATCH] 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. --- src/tools/msvc/gendef.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () { -- 2.39.5