Commit acae816c authored by Frédéric Buclin's avatar Frédéric Buclin

Redirect the error to STDERR if a query cannot be run, see bug 277073/255606

parent 29256fc7
......@@ -455,9 +455,9 @@ sub run_queries {
# If a query fails for whatever reason, it shouldn't kill the script.
my $sqlquery = eval { $search->sql };
if ($@) {
say get_text('whine_query_failed', { query_name => $thisquery->{'name'},
author => $args->{'author'},
reason => $@ });
print STDERR get_text('whine_query_failed', { query_name => $thisquery->{'name'},
author => $args->{'author'},
reason => $@ }) . "\n";
next;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment