mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 13:51:19 +00:00
use anyhow macro
This commit is contained in:
parent
abcf331a26
commit
029cb25e77
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ fn run_migrations(db_url: &str) -> Result<(), LemmyError> {
|
||||||
info!("Running Database migrations (This may take a long time)...");
|
info!("Running Database migrations (This may take a long time)...");
|
||||||
conn
|
conn
|
||||||
.run_pending_migrations(MIGRATIONS)
|
.run_pending_migrations(MIGRATIONS)
|
||||||
.map_err(|e| anyhow::Error::msg(format!("Couldn't run DB Migrations: {e}")))?;
|
.map_err(|e| anyhow::anyhow!("Couldn't run DB Migrations: {e}"))?;
|
||||||
info!("Database migrations complete.");
|
info!("Database migrations complete.");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue