We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f1bee commit 2ca68a5Copy full SHA for 2ca68a5
src/webserver/database/mod.rs
@@ -82,10 +82,9 @@ pub async fn apply_migrations(db: &Database) -> anyhow::Result<()> {
82
m.description
83
);
84
}
85
- migrator
86
- .run(&db.connection)
87
- .await
88
- .with_context(|| migration_err("running the migration"))?;
+ migrator.run(&db.connection).await.with_context(|| {
+ format!("There is an error in the database migrations in {MIGRATIONS_DIR:?}")
+ })?;
89
Ok(())
90
91
0 commit comments