crypto: Propagate a sqlite store error correctly.
parent
1b8b3da733
commit
426fe1df0f
|
@ -67,7 +67,7 @@ impl SqliteStore {
|
||||||
) -> Result<SqliteStore> {
|
) -> Result<SqliteStore> {
|
||||||
let url = SqliteStore::path_to_url(path.as_ref())?;
|
let url = SqliteStore::path_to_url(path.as_ref())?;
|
||||||
|
|
||||||
let connection = SqliteConnection::connect(url.as_ref()).await.unwrap();
|
let connection = SqliteConnection::connect(url.as_ref()).await?;
|
||||||
let store = SqliteStore {
|
let store = SqliteStore {
|
||||||
user_id: Arc::new(user_id.to_owned()),
|
user_id: Arc::new(user_id.to_owned()),
|
||||||
device_id: Arc::new(device_id.to_owned()),
|
device_id: Arc::new(device_id.to_owned()),
|
||||||
|
|
Loading…
Reference in New Issue