mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 01:40:34 +01:00
Correct Err return to prevent panic
This commit is contained in:
parent
28d6a4f518
commit
4f4591bfdc
1 changed files with 1 additions and 1 deletions
|
@ -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