summaryrefslogtreecommitdiff
path: root/classes/Login_token.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Login_token.php')
-rw-r--r--classes/Login_token.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/Login_token.php b/classes/Login_token.php
index 51dc61262..20d5d9dbc 100644
--- a/classes/Login_token.php
+++ b/classes/Login_token.php
@@ -73,6 +73,8 @@ class Login_token extends Memcached_DataObject
if (!$result) {
common_log_db_error($login_token, 'INSERT', __FILE__);
+ // TRANS: Exception thrown when trying creating a login token failed.
+ // TRANS: %s is the user nickname for which token creation failed.
throw new Exception(sprintf(_('Could not create login token for %s'),
$user->nickname));
}