diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-10-09 13:22:11 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-10-09 13:22:11 +0200 |
commit | 7e6c7b269ab3bf3759d5f04568d13065343f89f8 (patch) | |
tree | 4020ec0fbc6efa695c64e16db369ac04d8340783 /cgi/index.pl | |
parent | 42f85516b97b326c24ac0c0cc4727557e0bd32b1 (diff) |
show error messages directly in HTML
Diffstat (limited to 'cgi/index.pl')
-rw-r--r-- | cgi/index.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi/index.pl b/cgi/index.pl index 25a4da1..118df7d 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -77,6 +77,9 @@ sub handle_request { my $no_lines = $self->param('no_lines'); my $frontend = $self->param('frontend') // 'png'; + my (undef, $errstr) = get_results( $self->param('backend') // $default{backend}, + $city, $stop); + if ( not $no_lines or $no_lines < 1 or $no_lines > 40 ) { $no_lines = $default{no_lines}; } @@ -94,6 +97,7 @@ sub handle_request { stop => $stop, version => $VERSION, frontend => $frontend, + errstr => $errstr, title => $city ? "departures for ${city} ${stop}" : "vrr-fakedisplay ${VERSION}", |