From 2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 12 Nov 2012 18:46:48 +0100 Subject: Bug 676844: Replace ThrowCodeError() by ThrowUserError() when the error is not triggered by the code itself r=glob a=LpSolit --- jsonrpc.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jsonrpc.cgi') 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; -- cgit v1.2.3-24-g4f1b