forked from open-webui/open-webui
feat: improved error message for signup
This commit is contained in:
parent
68c5d53264
commit
7c553f1287
2 changed files with 2 additions and 3 deletions
|
@ -104,7 +104,7 @@ async def signup(form_data: SignupForm):
|
|||
"profile_image_url": user.profile_image_url,
|
||||
}
|
||||
else:
|
||||
raise HTTPException(500, detail=ERROR_MESSAGES.DEFAULT())
|
||||
raise HTTPException(500, detail=ERROR_MESSAGES.CREATE_USER_ERROR)
|
||||
except Exception as err:
|
||||
raise HTTPException(500, detail=ERROR_MESSAGES.DEFAULT(err))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue