mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-22 17:26:33 +03:00
Fix error not stopping migration
This commit is contained in:
parent
afddfbff88
commit
7be3afa336
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user