summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-11-28 00:25:02 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-11-28 00:25:02 +0100
commit4aeec3917bbcc69ed71d47420aeb0141f0be6b11 (patch)
tree422209e1301860be4482075b730268c224a3a500
parentfb5a11226b8c5c65df7afa90547e6ddfe711a839 (diff)
downloadbugzilla-4aeec3917bbcc69ed71d47420aeb0141f0be6b11.tar.gz
bugzilla-4aeec3917bbcc69ed71d47420aeb0141f0be6b11.tar.xz
Redirect the error to STDERR if a query cannot be run, see bug 277073
-rwxr-xr-xwhine.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/whine.pl b/whine.pl
index 9b48c8eda..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 ($@) {
- 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;
}