From 777cbaa69d20985b9845a9cde1b0892250fce711 Mon Sep 17 00:00:00 2001 From: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> Date: Mon, 1 Jul 2019 17:36:21 +0200 Subject: [PATCH] unwrap when failling to open .env in plm **this is a debug commit not expected to reach master, an actual fix will be needed** --- plume-cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-cli/src/main.rs b/plume-cli/src/main.rs index cc4b85d7..d9fdad37 100644 --- a/plume-cli/src/main.rs +++ b/plume-cli/src/main.rs @@ -25,7 +25,7 @@ fn main() { .subcommand(users::command()); let matches = app.clone().get_matches(); - dotenv::dotenv().ok(); + dotenv::dotenv().expect("error while reading .env"); let conn = Conn::establish(CONFIG.database_url.as_str()); let _ = conn.as_ref().map(|conn| Instance::cache_local(conn));