[work]: grrrrrrrr
This commit is contained in:
parent
5cb914aedf
commit
c160f52b72
2 changed files with 2 additions and 2 deletions
|
|
@ -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}")
|
||||
}
|
||||
})),
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue