summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Token.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r--Bugzilla/Token.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm
index a2604b0f5..ea1e51606 100644
--- a/Bugzilla/Token.pm
+++ b/Bugzilla/Token.pm
@@ -176,8 +176,7 @@ sub GenerateUniqueToken {
++$tries;
if ($tries > 100) {
- &::DisplayError("Something is seriously wrong with the token generation system.");
- exit;
+ &::ThrowCodeError("token_generation_error");
}
$token = &::GenerateRandomPassword();