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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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));