mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 14:57:56 +01:00
Better errors when the db directory is missing
This commit is contained in:
parent
84a4e9791e
commit
a43c38c118
@ -84,7 +84,8 @@ impl Diflouroborane {
|
|||||||
|
|
||||||
let executor = Executor::new();
|
let executor = Executor::new();
|
||||||
|
|
||||||
let env = StateDB::open_env(&config.db_path)?;
|
let env = StateDB::open_env(&config.db_path)
|
||||||
|
.context("Failed to create state DB env. Does the parent directory for `db_path` exist?")?;
|
||||||
let statedb =
|
let statedb =
|
||||||
StateDB::create_with_env(env.clone()).context("Failed to open state DB file")?;
|
StateDB::create_with_env(env.clone()).context("Failed to open state DB file")?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user