From eb669f27aa5fbc6f6ca96094c0c20544e628a33c Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Thu, 24 Dec 2020 11:10:26 -0500 Subject: [PATCH] Fixed error message Current error message can throw off users. Should be good now. --- wg_dashboard_backend/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wg_dashboard_backend/main.py b/wg_dashboard_backend/main.py index 65cf0a1..f962f0d 100644 --- a/wg_dashboard_backend/main.py +++ b/wg_dashboard_backend/main.py @@ -44,12 +44,12 @@ _db: Session = SessionLocal() if not database_exists(engine.url): ADMIN_USERNAME = os.getenv("ADMIN_USERNAME") if not ADMIN_USERNAME: - raise RuntimeError("Database does not exist and the environment variable ADMIN_USERNAME is set") + raise RuntimeError("Database does not exist and the environment variable ADMIN_USERNAME is not set") ADMIN_PASSWORD = os.getenv("ADMIN_PASSWORD") if not ADMIN_PASSWORD: - raise RuntimeError("Database does not exist and the environment variable ADMIN_PASSWORD is set") + raise RuntimeError("Database does not exist and the environment variable ADMIN_PASSWORD is not set") # Create database from metadata models.Base.metadata.create_all(engine)