diff --git a/src/lib.rs b/src/lib.rs index 90529e3..1b2520f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -311,7 +311,7 @@ pub async fn db_init(config: &Config) -> Result, Error> { .await?; // migrations are amazing! - sqlx::migrate!("./db/migrations").run(&pool).await.unwrap(); + sqlx::migrate!("./db/migrations").run(&pool).await?; Ok(pool) }