From acc01eb4d3cebae88fbedfcd4a09d21f8a659653 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Thu, 24 May 2012 06:30:44 +0000 Subject: [PATCH] Bug 744691: Throw an error early when calling a method from a non-existent class r=dkl, a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263851 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/WebService/Server.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 5075b493462..d8b33cd6943 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8235 \ No newline at end of file +8236 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/WebService/Server.pm b/mozilla/webtools/bugzilla/Bugzilla/WebService/Server.pm index 01ff907cd1a..a43ed204c9a 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/WebService/Server.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/WebService/Server.pm @@ -15,6 +15,7 @@ use Scalar::Util qw(blessed); sub handle_login { my ($self, $class, $method, $full_method) = @_; + ThrowCodeError('unknown_method', {method => $full_method}) if !$class; eval "require $class"; ThrowCodeError('unknown_method', {method => $full_method}) if $@; return if ($class->login_exempt($method)