v0.1.4: use stderr for error messages

This commit is contained in:
AJ ONeal 2018-09-18 22:23:18 -06:00
부모 4d72618bb9
커밋 70adbe6c9b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -7,13 +7,13 @@ fn main() {
let args: Vec<String> = env::args().collect();
let conf = grep::Config::new(&args).unwrap_or_else(|err| {
println!("Problem parsing arguments: {}", err);
eprintln!("Problem parsing arguments: {}", err);
process::exit(1);
});
//let filename = &conf.filename.clone();
if let Err(e) = grep::run(conf) {
println!("Big bad bada boom!\n{:?}", e);
eprintln!("Big bad bada boom!\n{:?}", e);
//println!("Big bad bada boom!\n{:?}", e.kind());
//println!("Big bad bada boom!\n{}", e.description());