-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Error is not propagated from a nested each #11224
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:inconsistent-behaviorBehavior between different commands or types inconsistent/unexpectedBehavior between different commands or types inconsistent/unexpectedstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
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:inconsistent-behaviorBehavior between different commands or types inconsistent/unexpectedBehavior between different commands or types inconsistent/unexpectedstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Potentially related (from @blm768):
eachswallows errors #10176Describe the bug
I tried this code:
If you put it into a file and run with
nuyou'll see the output:If you put
| debugafter the outermosteachyou'll see:And if you put smth like
| to jsonafter the outermosteachyou'll see the error:Details
Expected behavior
I expected to see the "executable not found" error no matter what happens with the resulting value. The error should be propagated even if there is no
| to jsonor similar at the end.Configuration