Skip to content

Nested each swallows errors #10176

@manveru

Description

@manveru

Describe the bug

Errors like executable was not found or any other content do not get propagated when you nest two each blocks.

How to reproduce

  1. run [[1,2]] | each {|x| $x | each {|y| error make {msg: "oh noes"} } }

Expected behavior

This should raise the error.

Screenshots

20230831_21h46m24s_grim

Configuration

key value
version 0.84.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.71.1 (eb26296b5 2023-08-03) (built from a source tarball)
cargo_version cargo 1.71.1
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator standard
features default, sqlite, trash, which, zip
installed_plugins

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:error-handlingHow errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)category:bugSomething isn't workingsemanticsPlaces where we should define/clarify nushell's semantics

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions