mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
Improve error message when opening database
This commit is contained in:
parent
d06d386f77
commit
0d0a4708ec
1 changed files with 7 additions and 1 deletions
|
|
@ -51,7 +51,13 @@ pub async fn daemon(
|
|||
};
|
||||
|
||||
// Open Database
|
||||
let db = sled::open(format!("{}/data", config.state_directory()))?;
|
||||
let db = sled::open(format!("{}/data", config.state_directory())).map_err(|err| {
|
||||
format!(
|
||||
"while opening database at {}: {}",
|
||||
config.state_directory(),
|
||||
err
|
||||
)
|
||||
})?;
|
||||
db.cleanup_unused_trees(config);
|
||||
|
||||
// Filter managers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue