summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Releases
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-10 13:12:03 +0100
committerYorhel <git@yorhel.nl>2021-01-10 13:12:05 +0100
commit34c8fdd405021af24f66fd1301902b6ae03d1d02 (patch)
tree0ad5c164a8f4387899d067ed95246bbdeab8cde3 /lib/VNWeb/Releases
parentbc87360592b827abd454b3c2fc9697ceb66e0148 (diff)
AdvSearch: Improve error reporting when query validation failed
Amazing how can browsers(?) and bots mangle URLs sometimes. Anyway, the user will now get a friendly error message instead of a 500, and I get to see log messages. Everyone happy. I hope.
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r--lib/VNWeb/Releases/List.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Releases/List.pm b/lib/VNWeb/Releases/List.pm
index 4f3664ca..723f70f0 100644
--- a/lib/VNWeb/Releases/List.pm
+++ b/lib/VNWeb/Releases/List.pm
@@ -34,7 +34,7 @@ TUWF::get qr{/r}, sub {
my $opt = tuwf->validate(get =>
q => { onerror => undef },
p => { upage => 1 },
- f => { advsearch => 'r' },
+ f => { advsearch_err => 'r' },
s => { onerror => 'title', enum => [qw/released minage title/] },
o => { onerror => 'a', enum => ['a','d'] },
fil => { required => 0 },