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 { ...@@ -455,9 +455,9 @@ sub run_queries {
# If a query fails for whatever reason, it shouldn't kill the script. # If a query fails for whatever reason, it shouldn't kill the script.
my $sqlquery = eval { $search->sql }; my $sqlquery = eval { $search->sql };
if ($@) { if ($@) {
say get_text('whine_query_failed', { query_name => $thisquery->{'name'}, print STDERR get_text('whine_query_failed', { query_name => $thisquery->{'name'},
author => $args->{'author'}, author => $args->{'author'},
reason => $@ }); reason => $@ }) . "\n";
next; 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