mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 14:48:44 +02:00
fix(overlay use): report errors in export-env (#16184)
- fixes #10242 # Tests + Formatting Added 2 tests to confirm `use` and `overlay use` report errors in `export-env` blocks. --------- Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
This commit is contained in:
@ -158,7 +158,7 @@ impl Command for OverlayUse {
|
||||
}
|
||||
|
||||
let eval_block = get_eval_block(engine_state);
|
||||
let _ = eval_block(engine_state, &mut callee_stack, block, input);
|
||||
let _ = eval_block(engine_state, &mut callee_stack, block, input)?;
|
||||
|
||||
// The export-env block should see the env vars *before* activating this overlay
|
||||
caller_stack.add_overlay(overlay_name);
|
||||
|
Reference in New Issue
Block a user