Skip to content

Commit 2856ab1

Browse files
committed
globals translated to english
1 parent 2e9b93d commit 2856ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_user_auth/globals/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def get_user_or_error(user: CurrentUserOrNone):
1515
"""获取当前登录用户,如果未登录则抛出异常"""
1616
if not user:
17-
raise AuthError(status=ErrorCode.USER_IS_NOT_LOGIN, msg="用户未登录")
17+
raise AuthError(status=ErrorCode.USER_IS_NOT_LOGIN, msg="User is not logged in") # 用户未登录
1818
return user
1919

2020

0 commit comments

Comments
 (0)