Helper/Nix: constructRunCommandLogPath: return undef in case of an error
This allows us to give a web request to an invalid UUID a 404.
This commit is contained in:
@ -163,7 +163,7 @@ sub buildFinished {
|
||||
|
||||
$runlog->started();
|
||||
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog);
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog) or die "RunCommandLog not found.";
|
||||
my $dir = dirname($logPath);
|
||||
my $oldUmask = umask();
|
||||
|
||||
|
Reference in New Issue
Block a user