mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
cc781a1ecd
# Description When a closure if provided to `group-by`, errors that occur in the closure are currently ignored. That is, `group-by` will fall back and use the `"error"` key if an error occurs. For example, the code snippet below will group all `ls` entries under the `"error"` column. ```nushell ls | group-by { get nope } ``` This PR changes `group-by` to instead bubble up any errors triggered inside the closure. In addition, this PR also does some refactoring and cleanup inside `group-by`. # User-Facing Changes Errors are now returned from the closure provided to `group-by` instead of falling back to the `"error"` group/key. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE |