This commit is contained in:
Eelco Dolstra 2009-03-03 22:20:24 +00:00
parent 7c616aaf1a
commit ac8af00e84
2 changed files with 3 additions and 3 deletions

View file

@ -68,8 +68,8 @@ sub view_log : Chained('build') PathPart('log') Args(0) {
sub loadLog {
my ($c, $path) = @_;
die unless defined $path;
notFound($c, "Log file $path no longer exists.") unless -f $path;
# !!! quick hack
my $pipeline = ($path =~ /.bz2$/ ? "cat $path | bzip2 -d" : "cat $path")
. " | nix-log2xml | xsltproc " . $c->path_to("xsl/mark-errors.xsl") . " -"

View file

@ -3,6 +3,6 @@
<h1>[% IF httpStatus %][% httpStatus %][% ELSE %]Error[% END %]</h1>
<p>I'm very sorry, but an error occurred: <span class="error-msg">[% FOREACH error IN errors %] [% HTML.escape(error) %] [% END %]</span></p>
<p>I'm very sorry, but an error occurred: <span class="error-msg">[% FOREACH error IN errors %][% HTML.escape(error) %][% END %]</span></p>
[% END %]