Make symstore.pl die if it fails to open a symbol directory (no bug, r=me).

This commit is contained in:
Scott Ehlert 2014-02-13 02:16:58 -06:00
parent b97d64c54a
commit d4742a40d4

View File

@ -43,7 +43,7 @@ close(PDBLOG);
#Lowercase DLLs. Sigh. #Lowercase DLLs. Sigh.
my (@files); my (@files);
opendir(DIR, "S:\\mmsource"); opendir(DIR, "S:\\mmsource") or die "Could not open mmsource symbol folder: $!\n";
@files = readdir(DIR); @files = readdir(DIR);
closedir(DIR); closedir(DIR);
@ -53,7 +53,7 @@ for ($i = 0; $i <= $#files; $i++)
$file = $files[$i]; $file = $files[$i];
next unless ($file =~ /\.dll$/); next unless ($file =~ /\.dll$/);
next unless (-d "S:\\mmsource\\$file"); 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); @subdirs = readdir(DIR);
closedir(DIR); closedir(DIR);
for ($j = 0; $j <= $#subdirs; $j++) for ($j = 0; $j <= $#subdirs; $j++)