Skip to content

Commit

Permalink
fix: don't panic if ignore path not found #91
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-web3 committed Jun 11, 2024
1 parent b0cb310 commit 3be287f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ pub fn parse_args() -> Config {
if opt.ignore_path.is_some() {
opt.ignore_path.as_mut().unwrap().iter_mut().for_each(|p| {
match fs::canonicalize(&p) {
Ok(p) => p,
Err(e) => panic!("Ignore path {:?} not found. {:?}.", p, e),
Ok(p) => &p,
Err(e) => {
println!("⚠ Warn: Ignore path {:?} not found. {:?}.", p, e);
&p
}
};
});
}
Expand Down

0 comments on commit 3be287f

Please sign in to comment.