File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,23 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
5757 ) ) ;
5858 }
5959 let local_path = PathBuf :: from ( & args. sources [ 0 ] ) ;
60- let ignore_path = PathBuf :: from ( & args. ignore_file ) ;
60+ let ignore_canonical = match PathBuf :: from ( & args. ignore_file ) . canonicalize ( ) {
61+ Ok ( p) => Some ( p) ,
62+ Err ( _) => {
63+ eprintln ! (
64+ "Warning: Ignore file {:?} not found. Proceeding without it." ,
65+ args. ignore_file
66+ ) ;
67+ None
68+ }
69+ } ;
6170 println ! ( "Processing local repository at: {:?}" , local_path) ;
6271 println ! ( "No file headers: {}" , args. no_headers) ;
63- println ! ( "Ignore file path: {:?}" , ignore_path. canonicalize( ) ?) ;
6472 println ! ( "----------------------------------------" ) ;
6573 process_local_path (
6674 local_path,
6775 args. no_headers ,
68- Some ( args . ignore_file ) ,
76+ ignore_canonical ,
6977 args. folder ,
7078 )
7179 . await
You can’t perform that action at this time.
0 commit comments