From acae816ceccc6cd6bdbc6c73e973d1bcd502db9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Tue, 29 Nov 2011 16:19:51 +0100 Subject: Redirect the error to STDERR if a query cannot be run, see bug 277073/255606 https://bugzilla.mozilla.org/show_bug.cgi?id=255606 --- whine.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'whine.pl') diff --git a/whine.pl b/whine.pl index 5e023d221..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 ($@) { - 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; } -- cgit v1.2.1