Skip to content

Commit 0026610

Browse files
committed
show db name in migration error
1 parent 9f3e12e commit 0026610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webserver/database/migrations.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ pub async fn apply(config: &crate::app_config::AppConfig, db: &Database) -> anyh
3838
let source_file =
3939
migrations_dir.join(format!("{:04}_{}.sql", n, migration.description));
4040
display_db_error(&source_file, &migration.sql, source).context(format!(
41-
"Failed to apply migration {}",
41+
"Failed to apply {} migration {}",
42+
db,
4243
DisplayMigration(migration)
4344
))
4445
}

0 commit comments

Comments
 (0)