diff options
author | Dylan Hardison <dylan@mozilla.com> | 2015-11-13 16:59:28 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2015-11-13 16:59:28 +0100 |
commit | 2c3a83913a61f3d81020db658a5679741661d7ca (patch) | |
tree | 8f042efa69f1ddee513468c3d2ec69529f47ed21 /Bugzilla | |
parent | 771547cd05b0266e4e0cf5682bb0e350f931a3bd (diff) | |
download | bugzilla-2c3a83913a61f3d81020db658a5679741661d7ca.tar.gz bugzilla-2c3a83913a61f3d81020db658a5679741661d7ca.tar.xz |
Bug 1209625 - MozReview API Keys should use a more specific error message
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/WebService/Server.pm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index ba05a64e8..d1e17a950 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -22,10 +22,8 @@ use Bugzilla::Error; use Bugzilla::Util qw(datetime_from); use Digest::MD5 qw(md5_base64); -use Encode; use Scalar::Util qw(blessed); use Storable qw(freeze); -use Sys::Syslog qw(:DEFAULT); sub handle_login { my ($self, $class, $method, $full_method) = @_; @@ -38,13 +36,7 @@ sub handle_login { } eval "require $class"; - my $error = $@; - if ($error) { - openlog('apache', 'cons,pid', 'local4'); - syslog('notice', '[rpc_error] ' . encode_utf8($error)); - closelog(); - } - ThrowCodeError('unknown_method', {method => $full_method}) if $error; + ThrowCodeError('unknown_method', {method => $full_method}) if $@; return if ($class->login_exempt($method) and !defined Bugzilla->input_params->{Bugzilla_login}); Bugzilla->login(); |