fix: Improve error message when current dir is not found (#773)

This commit is contained in:
Leonora Tindall 2019-12-21 20:26:57 -08:00 committed by Matan Kushner
parent b0a8003a59
commit 539f320a3f
1 changed files with 1 additions and 1 deletions

View File

@ -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")
})
});