Skip to content

Commit

Permalink
More descriptive message for build failure
Browse files Browse the repository at this point in the history
Resolves #64
  • Loading branch information
encounter committed Jun 4, 2024
1 parent 9e04357 commit 425dc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objdiff-gui/src/jobs/objdiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn run_make_cmd(config: &BuildConfig, cwd: &Path, arg: &Path) -> Result<BuildSta
cmdline.push(' ');
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 stderr = from_utf8(&output.stderr).context("Failed to process stderr")?;
Ok(BuildStatus {
Expand Down

0 comments on commit 425dc85

Please sign in to comment.