Преглед изворни кода

Provide more detailed information to the user upon database connection failure

	modified:   backend/open_webui/internal/db.py
Taehong Gu пре 10 месеци
родитељ
комит
c7ef6025af
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      backend/open_webui/internal/db.py

+ 1 - 0
backend/open_webui/internal/db.py

@@ -62,6 +62,7 @@ def handle_peewee_migration(DATABASE_URL):
 
     except Exception as 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
     finally:
         # Properly closing the database connection