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 --- editusers.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 12f7a548d..66871e413 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -701,7 +701,7 @@ sub check_user { $otherUser = new Bugzilla::User({ name => $otherUserLogin }); $vars->{'user_login'} = $otherUserLogin; } - ($otherUser && $otherUser->id) || ThrowCodeError('invalid_user', $vars); + ($otherUser && $otherUser->id) || ThrowUserError('invalid_user', $vars); return $otherUser; } -- cgit v1.2.3-24-g4f1b