From 4aeec3917bbcc69ed71d47420aeb0141f0be6b11 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 28 Nov 2011 00:25:02 +0100 Subject: Redirect the error to STDERR if a query cannot be run, see bug 277073 --- whine.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whine.pl b/whine.pl index 9b48c8eda..ad6067228 100755 --- a/whine.pl +++ b/whine.pl @@ -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 ($@) { - print get_text('whine_query_failed', { query_name => $thisquery->{'name'}, - author => $args->{'author'}, - reason => $@ }) . "\n"; + print STDERR get_text('whine_query_failed', { query_name => $thisquery->{'name'}, + author => $args->{'author'}, + reason => $@ }) . "\n"; next; } -- cgit v1.2.3-24-g4f1b