diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index a91f1a9e..c0e5802c 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -34,7 +34,7 @@ sub view_build : Chained('build') PathPart('') Args(0) { if (!$build->finished && $build->schedulingInfo->busy) { my $logfile = $build->schedulingInfo->logfile; - $c->stash->{logtext} = `cat $logfile`; + $c->stash->{logtext} = `cat $logfile` if -e $logfile; } }