forked from open-webui/open-webui
feat: auth error handling
This commit is contained in:
parent
6a2c1600f5
commit
a2e74c59b9
4 changed files with 31 additions and 15 deletions
|
@ -6,7 +6,11 @@ class MESSAGES(str, Enum):
|
|||
|
||||
|
||||
class ERROR_MESSAGES(str, Enum):
|
||||
def __str__(self) -> str:
|
||||
return super().__str__()
|
||||
|
||||
DEFAULT = lambda err="": f"Something went wrong :/\n{err if err else ''}"
|
||||
ENV_VAR_NOT_FOUND = "Essential environment variable not found. Terminating now."
|
||||
INVALID_TOKEN = (
|
||||
"Your session has expired or the token is invalid. Please sign in again."
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue