unwrap when failling to open .env in plm

**this is a debug commit not expected to reach master, an actual fix will be needed**
This commit is contained in:
fdb-hiroshima
2019-07-01 17:36:21 +02:00
committed by GitHub
parent 7ea4acc289
commit 777cbaa69d
+1 -1
View File
@@ -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));