diff --git a/crates/nu-command/src/filesystem/ls.rs b/crates/nu-command/src/filesystem/ls.rs index 762c8d300d..9d8db0a8c6 100644 --- a/crates/nu-command/src/filesystem/ls.rs +++ b/crates/nu-command/src/filesystem/ls.rs @@ -431,7 +431,7 @@ fn ls_for_one_pattern( Err(err) => Some(Value::error(err, call_span)), } } - _ => Some(Value::nothing(call_span)), + Err(err) => Some(Value::error(err, call_span)), }))) }