mirror of
https://github.com/nushell/nushell.git
synced 2024-11-08 09:34:30 +01:00
fix: ls not show pattern error (#7143)
Log: fix pattern error show in ls command
This commit is contained in:
parent
7636cc7fe4
commit
708fee535c
@ -165,8 +165,8 @@ impl Command for Ls {
|
|||||||
if paths_peek.peek().is_none() {
|
if paths_peek.peek().is_none() {
|
||||||
return Err(ShellError::GenericError(
|
return Err(ShellError::GenericError(
|
||||||
format!("No matches found for {}", &path.display().to_string()),
|
format!("No matches found for {}", &path.display().to_string()),
|
||||||
"".to_string(),
|
"Pattern, file or folder not found".to_string(),
|
||||||
None,
|
Some(p_tag),
|
||||||
Some("no matches found".to_string()),
|
Some("no matches found".to_string()),
|
||||||
Vec::new(),
|
Vec::new(),
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user