mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix: Improve error message when current dir is not found (#773)
This commit is contained in:
committed by
Matan Kushner
parent
b0a8003a59
commit
539f320a3f
+1
-1
@@ -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")
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user