mirror of
https://github.com/sharkdp/fd
synced 2024-10-14 11:42:46 +00:00
Correct Err return to prevent panic
This commit is contained in:
parent
28d6a4f518
commit
4f4591bfdc
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue