forked from the-distro/ofborg
fixup: nixenv stdout/stderr
This commit is contained in:
parent
289dba8891
commit
bc943c2415
|
@ -33,7 +33,7 @@ impl HydraNixEnv {
|
|||
let (status, stdout, mut stderr) = self.run_nix_env();
|
||||
self.remove_nix()?;
|
||||
|
||||
if status {
|
||||
if !status {
|
||||
Err(Error::Fd(stderr))
|
||||
} else if let Ok(stats) = serde_json::from_reader(&mut stderr) {
|
||||
let outpaths = outpathdiff::parse_lines(&mut BufReader::new(stdout));
|
||||
|
|
Loading…
Reference in a new issue