From: Frédéric Buclin Date: Sun, 27 Nov 2011 23:25:02 +0000 (+0100) Subject: Redirect the error to STDERR if a query cannot be run, see bug 277073 X-Git-Tag: bugzilla-4.2rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aeec3917bbcc69ed71d47420aeb0141f0be6b11;p=thirdparty%2Fbugzilla.git Redirect the error to STDERR if a query cannot be run, see bug 277073 --- diff --git a/whine.pl b/whine.pl index 9b48c8edaf..ad60672283 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; }