mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-22 19:25:56 +00:00
Recognise the coa-bots world server and explain the undo step
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0a050a40a2
commit
d85d86a3dc
9 files changed
+33
-10
No files matched your search
@@ -492,9 +492,13 @@ pub fn apply(p: &Params, report: &dyn Fn(&str, u8)) -> Result<Outcome> {
|
||||
Ok(r) if r.failed.is_none() => migrated = Some(r),
|
||||
Ok(r) => {
|
||||
let (mid, why) = r.failed.clone().unwrap();
|
||||
step(report, "Undoing the update", 76);
|
||||
return fail_after_apply(p, &mut txn, &before, &tree, format!("Database update {mid} failed: {why}"), Some(r));
|
||||
}
|
||||
Err(e) => return fail_after_apply(p, &mut txn, &before, &tree, e.to_string(), None),
|
||||
Err(e) => {
|
||||
step(report, "Undoing the update", 76);
|
||||
return fail_after_apply(p, &mut txn, &before, &tree, e.to_string(), None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user