feat: added provision error propagation

This commit is contained in:
robcholz
2026-02-09 01:48:20 -05:00
parent b425ae4b77
commit b5cd1f2064
3 changed files with 18 additions and 2 deletions
+5
View File
@@ -266,6 +266,11 @@ fn wait_for_vm_ipv4(
Ok(status) => {
status_missing = false;
let status = status.trim().to_string();
if status.starts_with("error:") {
let _ = fs::remove_file(&status_path);
let message = status.trim_start_matches("error:").trim().to_string();
return Err(message.into());
}
if !status.is_empty() && last_status.as_deref() != Some(status.as_str()) {
tracing::info!("[background]: {}", status);
last_status = Some(status);