Skip to content

Commit 425dc85

Browse files
committed
More descriptive message for build failure
Resolves #64
1 parent 9e04357 commit 425dc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objdiff-gui/src/jobs/objdiff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn run_make_cmd(config: &BuildConfig, cwd: &Path, arg: &Path) -> Result<BuildSta
143143
cmdline.push(' ');
144144
cmdline.push_str(shell_escape::escape(arg.to_string_lossy()).as_ref());
145145
}
146-
let output = command.output().context("Failed to execute build")?;
146+
let output = command.output().map_err(|e| anyhow!("Failed to execute build: {e}"))?;
147147
let stdout = from_utf8(&output.stdout).context("Failed to process stdout")?;
148148
let stderr = from_utf8(&output.stderr).context("Failed to process stderr")?;
149149
Ok(BuildStatus {

0 commit comments

Comments
 (0)