diff options
author | Leonora Tindall <nora@nora.codes> | 2019-12-21 20:26:57 -0800 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-12-21 23:26:57 -0500 |
commit | 539f320a3fee8094c2518b8881f67ce87aa69f7f (patch) | |
tree | 4b8138978f32001c0709c9d38d908b80c6d1bf31 /src/context.rs | |
parent | b0a8003a59dda4c5efdd8ff83c658d606d5d261e (diff) |
fix: Improve error message when current dir is not found (#773)
Diffstat (limited to 'src/context.rs')
-rw-r--r-- | src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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") }) }); |