Correct Err return to prevent panic

This commit is contained in:
DJRHails 2020-05-19 12:50:18 +01:00 committed by David Peter
parent 28d6a4f518
commit 4f4591bfdc

View file

@ -98,7 +98,7 @@ fn run() -> Result<ExitCode> {
// Check if we have no valid search paths.
if dir_vec.is_empty() {
anyhow!("No valid search paths given.");
return Err(anyhow!("No valid search paths given."));
}
if matches.is_present("absolute-path") {