mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-07 09:13:42 +08:00
fix: translate error messages and comments to English for consistency
This commit is contained in:
@@ -72,7 +72,7 @@ func ValidateUserToken(key string) (token *Token, err error) {
|
||||
return nil, errors.Wrap(err, "failed to get token by key")
|
||||
}
|
||||
if token.Status == TokenStatusExhausted {
|
||||
return nil, fmt.Errorf("API Keys %s(#%d)Quota已用尽", token.Name, token.Id)
|
||||
return nil, fmt.Errorf("API Key %s (#%d) quota has been exhausted", token.Name, token.Id)
|
||||
} else if token.Status == TokenStatusExpired {
|
||||
return nil, errors.New("The token has expired")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user