[work]: grrrrrrrr
Some checks failed
/ test (push) Waiting to run
/ clippy (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2026-04-30 13:52:59 -05:00
parent 5cb914aedf
commit c160f52b72
2 changed files with 2 additions and 2 deletions

View file

@ -2226,7 +2226,7 @@ fn add_library() -> Task<Message> {
Library::new(Arc::new(match res {
Ok(db) => db,
Err(e) => {
error!("{e}: {}", e.root_cause());
error!("{e}");
panic!("{e}")
}
})),

View file

@ -1271,7 +1271,7 @@ pub async fn add_db() -> Result<SqlitePool> {
db_url.push_str(data.to_str().expect("Should always be a file here"));
let opts = SqliteConnectOptions::from_str(&db_url)
.into_diagnostic()
.wrap_err(format!("DB Url: {db_url}"))?
.context(format!("DB Url: {db_url}"))?
.create_if_missing(true);
SqlitePool::connect_with(opts).await.into_diagnostic()
}