fix: ls not show pattern error (#7143)

Log: fix pattern error show in ls command
This commit is contained in:
Access 2022-11-16 16:15:19 +08:00 committed by GitHub
parent 7636cc7fe4
commit 708fee535c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,8 +165,8 @@ impl Command for Ls {
if paths_peek.peek().is_none() {
return Err(ShellError::GenericError(
format!("No matches found for {}", &path.display().to_string()),
"".to_string(),
None,
"Pattern, file or folder not found".to_string(),
Some(p_tag),
Some("no matches found".to_string()),
Vec::new(),
));