From af9d8082a1be2a560c3a85ca8c7b71828ccdf31b Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 3 Apr 2020 19:52:27 +0200 Subject: [PATCH] Better error message --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9108ffc..3c2b7b2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,7 +57,7 @@ fn main() { let current_directory = Path::new("."); 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