From d4742a40d436e3d09a79e95ca9b168c957a470aa Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 13 Feb 2014 02:16:58 -0600 Subject: [PATCH] Make symstore.pl die if it fails to open a symbol directory (no bug, r=me). --- support/buildbot/symstore.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/buildbot/symstore.pl b/support/buildbot/symstore.pl index aabc890..35b6081 100755 --- a/support/buildbot/symstore.pl +++ b/support/buildbot/symstore.pl @@ -43,7 +43,7 @@ close(PDBLOG); #Lowercase DLLs. Sigh. my (@files); -opendir(DIR, "S:\\mmsource"); +opendir(DIR, "S:\\mmsource") or die "Could not open mmsource symbol folder: $!\n"; @files = readdir(DIR); closedir(DIR); @@ -53,7 +53,7 @@ for ($i = 0; $i <= $#files; $i++) $file = $files[$i]; next unless ($file =~ /\.dll$/); next unless (-d "S:\\mmsource\\$file"); - opendir(DIR, "S:\\mmsource\\$file"); + opendir(DIR, "S:\\mmsource\\$file") or die "Could not open S:\\mmsource\\$file: $!\n"; @subdirs = readdir(DIR); closedir(DIR); for ($j = 0; $j <= $#subdirs; $j++)