We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a051ca4 + 5205088 commit d06287bCopy full SHA for d06287b
.changes/improve-sign-error.md
@@ -0,0 +1,6 @@
1
+---
2
+"cargo-packager": patch
3
+"@crabnebula/packager": patch
4
5
+
6
+Enhance sign error message.
crates/packager/src/shell.rs
@@ -83,7 +83,14 @@ impl CommandExt for Command {
83
if output.status.success() {
84
Ok(output)
85
} else {
86
- Err(std::io::Error::last_os_error())
+ Err(std::io::Error::new(
87
+ std::io::ErrorKind::Other,
88
+ format!(
89
+ "failed to run command: {self:?}\nstdout: {}\nstderr: {}",
90
+ String::from_utf8_lossy(&output.stdout),
91
+ String::from_utf8_lossy(&output.stderr)
92
+ ),
93
+ ))
94
}
95
96
0 commit comments