]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Redirect the error to STDERR if a query cannot be run, see bug 277073/255606
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 29 Nov 2011 15:19:51 +0000 (16:19 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 29 Nov 2011 15:19:51 +0000 (16:19 +0100)
https://bugzilla.mozilla.org/show_bug.cgi?id=255606

whine.pl

index 5e023d22161102f5a824795190d0a3e334759eb4..ad60672283f236afb749dc2e614419823d5c1969 100755 (executable)
--- 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;
         }