crypto: Propagate a sqlite store error correctly.

This commit is contained in:
Damir Jelić 2020-03-19 13:55:35 +01:00
parent 1b8b3da733
commit 426fe1df0f

View file

@ -67,7 +67,7 @@ impl SqliteStore {
) -> Result<SqliteStore> {
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 {
user_id: Arc::new(user_id.to_owned()),
device_id: Arc::new(device_id.to_owned()),