More descriptive message for build failure

Resolves #64
This commit is contained in:
Luke Street 2024-06-03 19:06:19 -06:00
parent 9e04357d9f
commit 425dc8546b
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ fn run_make_cmd(config: &BuildConfig, cwd: &Path, arg: &Path) -> Result<BuildSta
cmdline.push(' '); cmdline.push(' ');
cmdline.push_str(shell_escape::escape(arg.to_string_lossy()).as_ref()); cmdline.push_str(shell_escape::escape(arg.to_string_lossy()).as_ref());
} }
let output = command.output().context("Failed to execute build")?; let output = command.output().map_err(|e| anyhow!("Failed to execute build: {e}"))?;
let stdout = from_utf8(&output.stdout).context("Failed to process stdout")?; let stdout = from_utf8(&output.stdout).context("Failed to process stdout")?;
let stderr = from_utf8(&output.stderr).context("Failed to process stderr")?; let stderr = from_utf8(&output.stderr).context("Failed to process stderr")?;
Ok(BuildStatus { Ok(BuildStatus {