From 3887e4bb912ef326a252eb45143297a35520aba7 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 12 Jun 2011 22:13:26 +0000 Subject: [PATCH] make script execution fail if rest api is inaccessible git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1134995 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/site/changes/changes2html.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/site/changes/changes2html.pl b/lucene/src/site/changes/changes2html.pl index b5d7795dec5..d07a03d62b4 100755 --- a/lucene/src/site/changes/changes2html.pl +++ b/lucene/src/site/changes/changes2html.pl @@ -674,7 +674,7 @@ sub setup_release_dates { '2.4.0' => '2008-10-06', '2.4.1' => '2009-03-09', '2.9.0' => '2009-09-23', '2.9.1' => '2009-11-06', '3.0.0' => '2009-11-25'); - my $project_info_json = get($project_info_url); + my $project_info_json = get($project_info_url) || die "Unable to download $project_info_url"; my $project_info = json2perl($project_info_json); for my $version (@{$project_info->{versions}}) { if ($version->{releaseDate}) {