mirror of
https://github.com/nushell/nushell.git
synced 2025-05-28 14:07:08 +02:00
# User-Facing Changes - `expected <type>` errors are now propagated from `Closure | Block | Expression` instead of falling back to "expected one of..." for the block: Before: ```nushell def foo [bar: bool] {} if true {} else { foo 1 } ────┬──── ╰── expected one of a list of accepted shapes: [Block, Expression] ``` After: ```nushell if true {} else { foo 1 } ┬ ╰── expected bool ```