Skip to content

Commit 0c08987

Browse files
committed
fix: improve error message when dlltool is not found
1 parent 0777ba8 commit 0c08987

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ impl ImportLibraryGenerator {
192192
};
193193

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

197200
if status.success() {
198201
Ok(())

0 commit comments

Comments
 (0)