unwrap when failling to open .env in plume

**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:37:57 +02:00 committed by GitHub
parent 777cbaa69d
commit 6c73f993d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ compile_i18n!();
/// Initializes a database pool. /// Initializes a database pool.
fn init_pool() -> Option<DbPool> { fn init_pool() -> Option<DbPool> {
dotenv::dotenv().ok(); dotenv::dotenv().unwrap();
let manager = ConnectionManager::<Connection>::new(CONFIG.database_url.as_str()); let manager = ConnectionManager::<Connection>::new(CONFIG.database_url.as_str());
let pool = DbPool::builder() let pool = DbPool::builder()