You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnf'[ERROR: {fallback}]'iffallbackelse'Something went wrong :/'
24
+
returnf'[ERROR: {err}]'
25
+
26
+
6
27
classMESSAGES(str, Enum):
7
28
DEFAULT=lambdamsg='': f'{msgifmsgelse""}'
8
29
MODEL_ADDED=lambdamodel='': f"The model '{model}' has been added successfully."
@@ -18,7 +39,7 @@ class ERROR_MESSAGES(str, Enum):
18
39
def__str__(self) ->str:
19
40
returnsuper().__str__()
20
41
21
-
DEFAULT=lambdaerr='': f'{"Something went wrong :/"iferr==""else"[ERROR: "+str(err) +"]"}'
42
+
DEFAULT=_error_message
22
43
ENV_VAR_NOT_FOUND='Required environment variable not found. Terminating now.'
23
44
CREATE_USER_ERROR='Oops! Something went wrong while creating your account. Please try again later. If the issue persists, contact support for assistance.'
24
45
DELETE_USER_ERROR='Oops! Something went wrong. We encountered an issue while trying to delete the user. Please give it another shot.'
0 commit comments