mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
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:
parent
bdb6daa4b5
commit
eff7f33086
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
})))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue