Compare commits

...

2 Commits

Author SHA1 Message Date
fdb-hiroshima
6c73f993d0
unwrap when failling to open .env in plume
**this is a debug commit not expected to reach master, an actual fix will be needed**
2019-07-01 17:37:57 +02:00
fdb-hiroshima
777cbaa69d
unwrap when failling to open .env in plm
**this is a debug commit not expected to reach master, an actual fix will be needed**
2019-07-01 17:36:21 +02:00
2 changed files with 2 additions and 2 deletions

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

View File

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