diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-11-28 00:25:02 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-11-28 00:25:02 +0100 |
commit | 4aeec3917bbcc69ed71d47420aeb0141f0be6b11 (patch) | |
tree | 422209e1301860be4482075b730268c224a3a500 | |
parent | fb5a11226b8c5c65df7afa90547e6ddfe711a839 (diff) | |
download | bugzilla-4aeec3917bbcc69ed71d47420aeb0141f0be6b11.tar.gz bugzilla-4aeec3917bbcc69ed71d47420aeb0141f0be6b11.tar.xz |
Redirect the error to STDERR if a query cannot be run, see bug 277073
-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 ($@) { - 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; } |