From: Frédéric Buclin Date: Tue, 29 Nov 2011 15:19:51 +0000 (+0100) Subject: Redirect the error to STDERR if a query cannot be run, see bug 277073/255606 X-Git-Tag: bugzilla-4.3.1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acae816ceccc6cd6bdbc6c73e973d1bcd502db9b;p=thirdparty%2Fbugzilla.git Redirect the error to STDERR if a query cannot be run, see bug 277073/255606 https://bugzilla.mozilla.org/show_bug.cgi?id=255606 --- diff --git a/whine.pl b/whine.pl index 5e023d2216..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 ($@) { - 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; }