mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-08-02 08:10:53 -06:00
finished ch12.6 and ch12
All checks were successful
Test Gitea Actions / first (push) Successful in 22s
All checks were successful
Test Gitea Actions / first (push) Successful in 22s
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user