]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Redirect the error to STDERR if a query cannot be run, see bug 277073
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 27 Nov 2011 23:25:02 +0000 (00:25 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 27 Nov 2011 23:25:02 +0000 (00:25 +0100)
whine.pl

index 9b48c8edaf80287537da55677cd3cb89d1b0b917..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 ($@) {
-            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;
         }