fixup: nixenv stdout/stderr

This commit is contained in:
Graham Christensen 2019-04-14 07:25:55 -04:00
parent 289dba8891
commit bc943c2415
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -33,7 +33,7 @@ impl HydraNixEnv {
let (status, stdout, mut stderr) = self.run_nix_env(); let (status, stdout, mut stderr) = self.run_nix_env();
self.remove_nix()?; self.remove_nix()?;
if status { if !status {
Err(Error::Fd(stderr)) Err(Error::Fd(stderr))
} else if let Ok(stats) = serde_json::from_reader(&mut stderr) { } else if let Ok(stats) = serde_json::from_reader(&mut stderr) {
let outpaths = outpathdiff::parse_lines(&mut BufReader::new(stdout)); let outpaths = outpathdiff::parse_lines(&mut BufReader::new(stdout));