diff --git a/webtools/bugzilla/userprefs.cgi b/webtools/bugzilla/userprefs.cgi index 57cbda28cf47..42ef255d34af 100755 --- a/webtools/bugzilla/userprefs.cgi +++ b/webtools/bugzilla/userprefs.cgi @@ -109,7 +109,7 @@ sub SaveAccount { if($old_login_name ne $new_login_name) { $cgi->param('Bugzilla_password') - || ThrowCodeError("old_password_required"); + || ThrowUserError("old_password_required"); use Bugzilla::Token; # Block multiple email changes for the same user.