Fix error not stopping migration

This commit is contained in:
fabianlindfors 2023-01-09 17:26:57 +01:00
parent afddfbff88
commit 7be3afa336

View File

@ -200,7 +200,7 @@ fn migrate(
let mut last_action_index = usize::MAX; let mut last_action_index = usize::MAX;
let mut result: anyhow::Result<()> = Ok(()); let mut result: anyhow::Result<()> = Ok(());
for (migration_index, migration) in remaining_migrations.iter().enumerate() { 'outer: for (migration_index, migration) in remaining_migrations.iter().enumerate() {
println!("Migrating '{}':", migration.name); println!("Migrating '{}':", migration.name);
last_migration_index = migration_index; last_migration_index = migration_index;
@ -220,7 +220,7 @@ fn migrate(
println!("{}", "done".green()); println!("{}", "done".green());
} else { } else {
println!("{}", "failed".red()); println!("{}", "failed".red());
break; break 'outer;
} }
} }