diff options
author | Justin Worthe <justin@jemstep.com> | 2020-02-19 15:43:09 +0200 |
---|---|---|
committer | Justin Worthe <justin@jemstep.com> | 2020-02-19 15:43:09 +0200 |
commit | 4bc554489a6eab5ce9b4ac1f3086590e869225fa (patch) | |
tree | e527eb814c5e50a9b896b48b504ee9cfebab669a | |
parent | d5c752e36d88d048be20e6e525d0146b0d2f0a81 (diff) |
Improved logging in the GPG error case for parallel fetching of keys
-rw-r--r-- | src/gpg.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() )))) } } |