From: Matt S Trout Date: Tue, 23 Oct 2012 19:54:11 +0000 (+0000) Subject: generate plugin: only print error header if there are errors X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=17722da949dcb22586290becec459f93f49335c5;p=scpubgit%2FApp-SCS.git generate plugin: only print error header if there are errors --- diff --git a/lib/App/SCS/Plugin/Generate.pm b/lib/App/SCS/Plugin/Generate.pm index d36568a..b48fd01 100644 --- a/lib/App/SCS/Plugin/Generate.pm +++ b/lib/App/SCS/Plugin/Generate.pm @@ -49,7 +49,7 @@ sub run_command_generate (dir=s;host=s;only=s) { ." for path ${path}"; $dir->catfile("index.${ext}")->print($res->content); } - warn "\nERRORS GENERATING PAGES:\n"; + warn "\nERRORS GENERATING PAGES:\n" if @fail; foreach my $fail (@fail) { my ($path, $res) = @$fail; warn "\nFailed to generate ${path}:\n";