aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-11-29 16:19:51 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-11-29 16:19:51 +0100
commitacae816ceccc6cd6bdbc6c73e973d1bcd502db9b (patch)
tree49ff79b95d2e1d06b45a2bb6aa71f2c713a909f1 /whine.pl
parentBug 687725: Adding a local bug ID in the See Also field isn't logged in the b... (diff)
downloadbugzilla-acae816ceccc6cd6bdbc6c73e973d1bcd502db9b.tar.gz
bugzilla-acae816ceccc6cd6bdbc6c73e973d1bcd502db9b.tar.bz2
bugzilla-acae816ceccc6cd6bdbc6c73e973d1bcd502db9b.zip
Redirect the error to STDERR if a query cannot be run, see bug 277073/255606
https://bugzilla.mozilla.org/show_bug.cgi?id=255606
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl6
1 files changed, 3 insertions, 3 deletions
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;
}