v0.1.4: use stderr for error messages
This commit is contained in:
parent
4d72618bb9
commit
70adbe6c9b
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue