crypto: Propagate a sqlite store error correctly.

master
Damir Jelić 2020-03-19 13:55:35 +01:00
parent 1b8b3da733
commit 426fe1df0f
1 changed files with 1 additions and 1 deletions

View File

@ -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()),