-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Nested each swallows errors #10176
Copy link
Copy link
Closed
Labels
A:error-handlingHow errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)How errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)category:bugSomething isn't workingSomething isn't workingsemanticsPlaces where we should define/clarify nushell's semanticsPlaces where we should define/clarify nushell's semantics
Milestone
Description
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
- run
[[1,2]] | each {|x| $x | each {|y| error make {msg: "oh noes"} } }
Expected behavior
This should raise the error.
Screenshots
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:error-handlingHow errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)How errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)category:bugSomething isn't workingSomething isn't workingsemanticsPlaces where we should define/clarify nushell's semanticsPlaces where we should define/clarify nushell's semantics
