summaryrefslogtreecommitdiffstats
path: root/jsonrpc.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.cgi')
-rwxr-xr-xjsonrpc.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonrpc.cgi b/jsonrpc.cgi
index 6a60c9d3e..0b56d57c1 100755
--- a/jsonrpc.cgi
+++ b/jsonrpc.cgi
@@ -16,7 +16,7 @@ use Bugzilla::Error;
use Bugzilla::WebService::Constants;
BEGIN {
if (!Bugzilla->feature('jsonrpc')) {
- ThrowCodeError('feature_disabled', { feature => 'jsonrpc' });
+ ThrowUserError('feature_disabled', { feature => 'jsonrpc' });
}
}
use Bugzilla::WebService::Server::JSONRPC;