mirror of
https://github.com/sharkdp/fd
synced 2024-10-01 13:33:55 +00:00
Better error message
This commit is contained in:
parent
094516aec3
commit
af9d8082a1
|
@ -57,7 +57,7 @@ fn main() {
|
||||||
|
|
||||||
let current_directory = Path::new(".");
|
let current_directory = Path::new(".");
|
||||||
if !filesystem::is_dir(current_directory) {
|
if !filesystem::is_dir(current_directory) {
|
||||||
print_error_and_exit!("Could not get current directory.");
|
print_error_and_exit!("Could not retrieve current directory (has it been deleted?).");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the search pattern
|
// Get the search pattern
|
||||||
|
|
Loading…
Reference in a new issue