mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-27 13:21:32 +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)...");
|
||||
conn
|
||||
.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.");
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue