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 --- votes.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'votes.cgi') diff --git a/votes.cgi b/votes.cgi index 032dc1b8a..45a8b0815 100755 --- a/votes.cgi +++ b/votes.cgi @@ -17,7 +17,7 @@ use Bugzilla; use Bugzilla::Error; my $is_enabled = grep { $_->NAME eq 'Voting' } @{ Bugzilla->extensions }; -$is_enabled || ThrowCodeError('extension_disabled', { name => 'Voting' }); +$is_enabled || ThrowUserError('extension_disabled', { name => 'Voting' }); my $cgi = Bugzilla->cgi; my $action = $cgi->param('action') || 'show_user'; -- cgit v1.2.3-24-g4f1b