reset signals in catch block
This commit is contained in:
parent
b66671d339
commit
96d21d9ab0
|
@ -116,6 +116,7 @@ fn handle_catch(
|
|||
stack: &mut Stack,
|
||||
eval_block_fn: EvalBlockFn,
|
||||
) -> Result<PipelineData, ShellError> {
|
||||
engine_state.reset_signals();
|
||||
if let Some(catch_block) = catch_block {
|
||||
let catch_block = engine_state.get_block(catch_block.block_id);
|
||||
// Put the error value in the positional closure var
|
||||
|
|
|
@ -182,7 +182,7 @@ impl EngineState {
|
|||
&self.signals
|
||||
}
|
||||
|
||||
pub fn reset_signals(&mut self) {
|
||||
pub fn reset_signals(&self) {
|
||||
self.signals.reset()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user