pub fn log_process_error(process: std::process::Output) -> Result<()> {
    match OpenOptions::new()
        .create(true)
        .append(true)
        .open(prefix_home(".gee/logs.txt"))
    {
        Ok(ref mut file) => {
            let output = String::from_utf8_lossy(&process.stderr);
            writeln!(file, "{}", output)?;
        }
        Err(err) => {
            panic!("failed to open log file: {}", err);
        }
    }
    Ok(())
}
/// PARAMS: process = a pointer to the process
/// that had a non-zero exit status code.
/// it writes the stderr to .gee/logs.txt, and then prints the log.
process = a pointer to the process
that had a non-zero exit status code.
it writes the stderr to .gee/logs.txt, and then prints the log.
process = a pointer to the process that had a non - zero exit status code . it writes the stderr to . gee / logs . txt and then prints the log .
pub fn log_process_error(process: std::process::Output) -> Result<()> {
    match OpenOptions::new()
        .create(true)
        .append(true)
        .open(prefix_home(".gee/logs.txt"))
    {
        Ok(ref mut file) => {
            let output = String::from_utf8_lossy(&process.stderr);
            writeln!(file, "{}", output)?;
        }
        Err(err) => {
            panic!("failed to open log file: {}", err);
        }
    }
    Ok(())
}
pub fn log_process_error ( process : std :: process :: Output ) -> Result < ( ) > { match OpenOptions :: new ( ) . create ( true ) . append ( true ) . open ( prefix_home ( " " ) ) { Ok ( ref mut file ) => { let output = String :: from_utf8_lossy ( & process . stderr ) ; writeln ! ( file " " output ) ? ; } Err ( err ) => { panic ! ( " " err ) ; } } Ok ( ( ) ) }
PARAMS: process = a pointer to the process
that had a non-zero exit status code.
PARAMS : process = a pointer to the process that had a non - zero exit status code .
process
std::process::Output
process
std::process::Output