* Catalyst::View::Download::Plain doesn't like empty files.

This commit is contained in:
Eelco Dolstra 2009-03-20 10:26:26 +00:00
parent d13af4f392
commit e076c0cff4

View file

@ -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');
}