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:
parent
7ea4acc289
commit
777cbaa69d
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user