mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 22:54:34 +02:00
update miette and switch to GenericErrors (#5222)
This commit is contained in:
@ -42,7 +42,7 @@ impl Command for Enter {
|
||||
let new_path = nu_path::canonicalize_with(new_path, &cwd)?;
|
||||
|
||||
if !new_path.exists() {
|
||||
return Err(ShellError::DirectoryNotFound(path_span));
|
||||
return Err(ShellError::DirectoryNotFound(path_span, None));
|
||||
}
|
||||
|
||||
if !new_path.is_dir() {
|
||||
|
Reference in New Issue
Block a user