Report errors that occur on file operations in ls (#12033)

Currently errors just create empty entries inside of resulting
dataframes.

This changeset is meant to help debug #12004, though generally speaking
I do think it's worth having ways to make errors be visible in this kind
of pipeline be visible

An example of what this looks like

<img width="954" alt="image"
src="https://github.com/nushell/nushell/assets/1408472/2c3c9167-2aaf-4f87-bab5-e8302d7a1170">
This commit is contained in:
Raphael Gaschignard 2024-05-04 01:12:43 +10:00 committed by GitHub
parent bdb6daa4b5
commit eff7f33086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -431,7 +431,7 @@ fn ls_for_one_pattern(
Err(err) => Some(Value::error(err, call_span)), Err(err) => Some(Value::error(err, call_span)),
} }
} }
_ => Some(Value::nothing(call_span)), Err(err) => Some(Value::error(err, call_span)),
}))) })))
} }