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 | |
parent | 29256fc79c74982f688f791fcaee8180504711dd (diff) | |
download | bugzilla-acae816ceccc6cd6bdbc6c73e973d1bcd502db9b.tar.gz bugzilla-acae816ceccc6cd6bdbc6c73e973d1bcd502db9b.tar.xz |
Redirect the error to STDERR if a query cannot be run, see bug 277073/255606
https://bugzilla.mozilla.org/show_bug.cgi?id=255606
-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; } |