* Catalyst::View::Download::Plain doesn't like empty files.
This commit is contained in:
parent
d13af4f392
commit
e076c0cff4
|
@ -80,7 +80,7 @@ sub showLog {
|
|||
}
|
||||
|
||||
elsif ($mode eq "tail") {
|
||||
$c->stash->{'plain'} = { data => scalar `tail -n 50 $path` };
|
||||
$c->stash->{'plain'} = { data => (scalar `tail -n 50 /tmp/z`) || " " };
|
||||
$c->forward('Hydra::View::Plain');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue