summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Releases
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-21 10:07:12 +0100
committerYorhel <git@yorhel.nl>2021-01-21 10:10:23 +0100
commitebb48fad0da450d0c07c9dc9d171eb612fa56486 (patch)
tree5af199b36752f5b604ed591dab3ae43e023627e4 /lib/VNWeb/Releases
parentb7191ab5eb79a9683cafc154dd1dd0492ae6c153 (diff)
AdvSearch: Stop logging filter compatibility conversion errors
I think I've seen all the possible errors by now, what remains are invalid/corrupted filter strings that aren't very interesting to handle.
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r--lib/VNWeb/Releases/List.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VNWeb/Releases/List.pm b/lib/VNWeb/Releases/List.pm
index 723f70f0..8e985a23 100644
--- a/lib/VNWeb/Releases/List.pm
+++ b/lib/VNWeb/Releases/List.pm
@@ -45,11 +45,7 @@ TUWF::get qr{/r}, sub {
my $q = eval {
tuwf->compile({ advsearch => 'r' })->validate(filter_release_adv filter_parse r => $opt->{fil})->data;
};
- if(!$q) {
- warn "Filter compatibility conversion failed\n$@";
- } else {
- return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'temp');
- }
+ return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'temp') if $q;
}
$opt->{f} = advsearch_default 'r' if !$opt->{f}{query} && !defined tuwf->reqGet('f');