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:
parent
b0a8003a59
commit
539f320a3f
@ -43,7 +43,7 @@ impl<'a> Context<'a> {
|
|||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
env::var("PWD").map(PathBuf::from).unwrap_or_else(|err| {
|
env::var("PWD").map(PathBuf::from).unwrap_or_else(|err| {
|
||||||
log::debug!("Unable to get path from $PWD: {}", 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")
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user