Skip to content
Myr

Correct Err return to prevent panic

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by DJRHails · committed by David Peter · parent 28d6a4f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/main.rs+1 added-1 removed
96 unmodified lines
97 }9899 // Check if we have no valid search paths.100 if dir_vec.is_empty() {101 anyhow!("No valid search paths given.");101 return Err(anyhow!("No valid search paths given."));102 }103104 if matches.is_present("absolute-path") {105 dir_vec = dir_vec
319 unmodified lines