diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-11-29 16:19:51 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-11-29 16:19:51 +0100 |
commit | acae816ceccc6cd6bdbc6c73e973d1bcd502db9b (patch) | |
tree | 49ff79b95d2e1d06b45a2bb6aa71f2c713a909f1 /whine.pl | |
parent | Bug 687725: Adding a local bug ID in the See Also field isn't logged in the b... (diff) | |
download | bugzilla-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-x | whine.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |