From c5171c7a40acd0b9c7539c44a2556c570c8355ce Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sat, 14 Feb 2015 07:26:52 +0100 Subject: Exit if unable to fetch scoreboard --- stats.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/stats.pl b/stats.pl index 18582eb..bfffe07 100755 --- a/stats.pl +++ b/stats.pl @@ -37,6 +37,7 @@ my @group_names = (); my $content = get($score_url); if (!defined($content)) { print STDERR "Could not fetch scoreboard!"; + exit 1 } my @content = split /^-+$/m, $content; -- cgit v1.2.3