Skip to content

Commit

Permalink
fix: improve error message when dlltool is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 11, 2022
1 parent 0777ba8 commit 0c08987
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ impl ImportLibraryGenerator {
};

// Run the selected `dlltool` executable to generate the import library.
let status = command.status()?;
let status = command.status().map_err(|e| {
let msg = format!("{:?} failed with {}", command, e);
Error::new(e.kind(), msg)
})?;

if status.success() {
Ok(())
Expand Down

0 comments on commit 0c08987

Please sign in to comment.