mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Provide more detailed information to the user upon database connection failure
modified: backend/open_webui/internal/db.py
This commit is contained in:
parent
a196b9dc26
commit
c7ef6025af
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ def handle_peewee_migration(DATABASE_URL):
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f"Failed to initialize the database connection: {e}")
|
log.error(f"Failed to initialize the database connection: {e}")
|
||||||
|
log.warning("Hint: If your database password contains special characters, you may need to URL-encode it.")
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
# Properly closing the database connection
|
# Properly closing the database connection
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue