summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Worthe <justin@jemstep.com>2020-02-19 15:43:09 +0200
committerJustin Worthe <justin@jemstep.com>2020-02-19 15:43:09 +0200
commit4bc554489a6eab5ce9b4ac1f3086590e869225fa (patch)
treee527eb814c5e50a9b896b48b504ee9cfebab669a
parentd5c752e36d88d048be20e6e525d0146b0d2f0a81 (diff)
Improved logging in the GPG error case for parallel fetching of keys
-rw-r--r--src/gpg.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpg.rs b/src/gpg.rs
index 78a0648..822f0f9 100644
--- a/src/gpg.rs
+++ b/src/gpg.rs
@@ -92,16 +92,15 @@ impl LiveGpg {
.args(&["--keyserver", &self.keyserver])
.arg("--recv-keys")
.arg(fingerprint)
- .stdout(Stdio::null())
- .stderr(Stdio::null())
- .status()?;
+ .output()?;
- if result.success() {
+ if result.status.success() {
Ok(())
} else {
+ debug!("GPG Stderr: {:?}", String::from_utf8(result.stderr));
Err(Box::new(CapnError::new(format!(
"Call to GPG keyserver failed with code {:?}",
- result.code()
+ result.status.code()
))))
}
}