1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-10 05:28:29 +01:00
nushell/crates/nu-engine
Devyn Cairns a59477205d
Fix try: Add set_last_error() to prepare_error_handler() for IR eval ()
# Description

Fixes a bug with `set_last_error()` introduced by @IanManske not being
called during the jump to an error handler in IR eval. Without this,
`$env.LAST_EXIT_CODE` wasn't getting set in the `catch` block for an
external.

# Tests + Formatting

Added a `tests/eval` test to cover this in both IR and non-IR eval
2024-09-13 00:07:22 -07:00
..
src Fix try: Add set_last_error() to prepare_error_handler() for IR eval () 2024-09-13 00:07:22 -07:00
Cargo.toml Setup global cargo lint configuration () 2024-08-28 23:37:17 +02:00
LICENSE
README.md Add top-level crate documentation/READMEs () 2024-07-14 10:10:41 +02:00

This crate primarily drives the evaluation of expressions.

(Some overlap with nu-protocol)

  • Provides CallExt

Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.