an efficient binary archive format
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add logging when writing ouput to a file

zach a0556fcb 66674193

+6 -2
+6 -2
src/bin/bindle.rs
··· 215 215 output, 216 216 } => { 217 217 let b = init_load(bindle_file.clone()); 218 - let res = if let Some(output) = output { 218 + let res = if let Some(output) = &output { 219 219 b.read_to(name.as_str(), std::fs::File::create(output)?) 220 220 } else { 221 221 b.read_to(name.as_str(), io::stdout()) 222 222 }; 223 223 match res { 224 - Ok(_n) => {} 224 + Ok(_n) => { 225 + if output.is_some() { 226 + println!("OK") 227 + } 228 + } 225 229 Err(e) => { 226 230 return Err(io::Error::new(io::ErrorKind::NotFound, e)); 227 231 }