Try detect incompatible path format

This commit is contained in:
Zhenping Zhao 2024-12-15 15:17:32 -08:00
parent b1de37302a
commit 569929983c

View file

@ -85,7 +85,7 @@ pub mod windows {
// Other path format, like UNC Network share path, or bash format
// /c/Users/nushell will be supported later.
Err(ShellError::InvalidValue {
valid: "can't detect drive letter.".into(),
valid: format!("Can't detect drive letter from {}.", path_string),
actual: path_string,
span: Span::unknown(),
})