mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(proxy_server.py): improve error message on ui login error
This commit is contained in:
parent
fe83836b6e
commit
704573c3f6
1 changed files with 1 additions and 1 deletions
|
@ -6632,7 +6632,7 @@ async def login(request: Request):
|
||||||
ui_password = str(master_key) if master_key is not None else None
|
ui_password = str(master_key) if master_key is not None else None
|
||||||
if ui_password is None:
|
if ui_password is None:
|
||||||
raise ProxyException(
|
raise ProxyException(
|
||||||
message="set Proxy master key to use UI. https://docs.litellm.ai/docs/proxy/virtual_keys",
|
message="set Proxy master key to use UI. https://docs.litellm.ai/docs/proxy/virtual_keys. If set, use `--detailed_debug` to debug issue.",
|
||||||
type="auth_error",
|
type="auth_error",
|
||||||
param="UI_PASSWORD",
|
param="UI_PASSWORD",
|
||||||
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue