From d259be7b1f54f4a4293bc534e2c450a344faccc1 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 13 Feb 2014 01:40:02 -0600 Subject: [PATCH] Make symstore.pl die if it fails to open a symbol directory (no bug, r=dvander). --- tools/buildbot/symstore.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/buildbot/symstore.pl b/tools/buildbot/symstore.pl index f7003d6d..264b4d30 100755 --- a/tools/buildbot/symstore.pl +++ b/tools/buildbot/symstore.pl @@ -43,7 +43,7 @@ close(PDBLOG); #Lowercase DLLs. Sigh. my (@files); -opendir(DIR, "S:\\sourcemod"); +opendir(DIR, "S:\\sourcemod") or die "Could not open sourcemod 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:\\sourcemod\\$file"); - opendir(DIR, "S:\\sourcemod\\$file"); + opendir(DIR, "S:\\sourcemod\\$file") or die "Could not open S:\\sourcemod\\$file: $!\n"; @subdirs = readdir(DIR); closedir(DIR); for ($j = 0; $j <= $#subdirs; $j++)