Commit a4d55307 authored by Roman Alifanov's avatar Roman Alifanov

Emit completion signal on command failure

parent 2e063426
......@@ -243,6 +243,14 @@ impl EpmExecutor {
"Operation completed",
&tx_str,
).await;
} else {
let error_msg = stderr_lines.last().cloned()
.unwrap_or_else(|| format!("Failed with exit code {}", status.code().unwrap_or(-1)));
let _ = emitter.emit_progress_done(
"system.error",
&error_msg,
&tx_str,
).await;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment