From 539f320a3fee8094c2518b8881f67ce87aa69f7f Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Sat, 21 Dec 2019 20:26:57 -0800 Subject: [PATCH] fix: Improve error message when current dir is not found (#773) --- src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.rs b/src/context.rs index b306a78d2..97923dbaa 100644 --- a/src/context.rs +++ b/src/context.rs @@ -43,7 +43,7 @@ impl<'a> Context<'a> { .unwrap_or_else(|| { env::var("PWD").map(PathBuf::from).unwrap_or_else(|err| { log::debug!("Unable to get path from $PWD: {}", err); - env::current_dir().expect("Unable to identify current directory.") + env::current_dir().expect("Unable to identify current directory. Error") }) });