refactor: polish a panic message

This commit is contained in:
Matouš Volf 2024-09-10 23:46:12 +02:00
parent 8220c3fb35
commit 4aef1e7ef5

View File

@ -4,7 +4,7 @@ use dotenvy::dotenv;
use std::env;
pub(crate) fn establish_database_connection() -> ConnectionResult<PgConnection> {
dotenv().expect("Could not load environment variables.");
dotenv().expect("Could not load environment variables from the .env file.");
let database_url =
env::var("DATABASE_URL").expect("The environment variable DATABASE_URL has to be set.");