diff --git a/src/command.rs b/src/command.rs index 9a9c94e..42c8334 100644 --- a/src/command.rs +++ b/src/command.rs @@ -116,10 +116,13 @@ impl Command { .output() .expect("Failed to call external program"); // FIXME not printing to out - let y = out.stdout.iter().map(|b| *b as char).collect::(); + // + let output = String::from_utf8_lossy(&out.stdout); + let errout = String::from_utf8_lossy(&out.stderr); // TODO load into env - // let status = out.status.code(); - println!("{y}"); + let status = out.status.code(); + println!("{:?} output: {output}", status); + println!("{:?} err: {errout}", status); }), ); v.push(cmd);