zeroclaw-labs/zeroclaw · error · anyhow::Error
Command failed: {}
Error message
Command failed: {} What it means
Error "Command failed: {}" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-runtime/src/service/mod.rs:2089
.join("zeroclaw.service"))
}
fn linux_systemd_unit_file(config: &Config) -> Result<PathBuf> {
let home = directories::UserDirs::new()
.map(|u| u.home_dir().to_path_buf())
.context("Could not find home directory")?;
Ok(home
.join(".config")
.join("systemd")
.join("user")
.join(linux_systemd_unit(config)))
}
fn run_checked(command: &mut Command) -> Result<()> {
let output = command.output().context("Failed to spawn command")?;
if !output.status.success() {
let stderr = String::from_utf8_lossy(&output.stderr);
anyhow::bail!("Command failed: {}", stderr.trim());
}
Ok(())
}
pub fn run_capture(command: &mut Command) -> Result<String> {
let output = command.output().context("Failed to spawn command")?;
let mut text = String::from_utf8_lossy(&output.stdout).to_string();
if text.trim().is_empty() {
text = String::from_utf8_lossy(&output.stderr).to_string();
}
Ok(text)
}
pub fn xml_escape(raw: &str) -> String {
raw.replace('&', "&")
.replace('<', "<")
.replace('>', ">")
.replace('"', """)View on GitHub (pinned to 88bb9c8533)
Solutions
- Inspect the command output in the error detail; fix the failing service command and retry.
When it happens
Trigger: Thrown at crates/zeroclaw-runtime/src/service/mod.rs:2089 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/c1db80234df589f7.
Report an issue: GitHub.