finished ch12.6 and ch12
All checks were successful
Test Gitea Actions / first (push) Successful in 22s

This commit is contained in:
2025-02-19 22:26:43 +00:00
parent 17d55c746d
commit d499a994af
3 changed files with 92 additions and 3 deletions

View File

@ -24,8 +24,10 @@ fn main() {
// recfactor 6
let config = Config::build(&args).unwrap_or_else(|err| {
// refactor 8
println!("Problem parsing arguments: {err}");
// refactor 14
// println!("Problem parsing arguments: {err}");
// process::exit(1);
eprintln!("Problem parsing arguments: {err}");
process::exit(1);
});
@ -36,7 +38,10 @@ fn main() {
// refactor 8
if let Err(e) = minigrep::run(config) {
// needed for helping the user
println!("Application error: {e}");
// refactpr 14
// println!("Application error: {e}");
// process::exit(1);
eprintln!("Application error: {e}");
process::exit(1);
}