1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-26 19:40:20 +00:00

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

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