added stderr to problem solve
This commit is contained in:
		@@ -116,10 +116,13 @@ impl Command {
 | 
				
			|||||||
                                    .output()
 | 
					                                    .output()
 | 
				
			||||||
                                    .expect("Failed to call external program");
 | 
					                                    .expect("Failed to call external program");
 | 
				
			||||||
                                // FIXME not printing to out
 | 
					                                // FIXME not printing to out
 | 
				
			||||||
                                let y = out.stdout.iter().map(|b| *b as char).collect::<String>();
 | 
					                                //
 | 
				
			||||||
 | 
					                                let output = String::from_utf8_lossy(&out.stdout);
 | 
				
			||||||
 | 
					                                let errout = String::from_utf8_lossy(&out.stderr);
 | 
				
			||||||
                                // TODO load into env
 | 
					                                // TODO load into env
 | 
				
			||||||
                                // let status = out.status.code();
 | 
					                                let status = out.status.code();
 | 
				
			||||||
                                println!("{y}");
 | 
					                                println!("{:?} output: {output}", status);
 | 
				
			||||||
 | 
					                                println!("{:?} err: {errout}", status);
 | 
				
			||||||
                            }),
 | 
					                            }),
 | 
				
			||||||
                        );
 | 
					                        );
 | 
				
			||||||
                        v.push(cmd);
 | 
					                        v.push(cmd);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user