From 9d6d43ee55a29e8698d9cea5101776ff88f08bb9 Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Thu, 26 Jan 2023 04:00:48 -0800 Subject: [PATCH] Fix `do` swallowing all output when ignoring errors (#7859) https://github.com/nushell/nushell/pull/7204#issuecomment-1404363845 --- crates/nu-command/src/core_commands/do_.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/core_commands/do_.rs b/crates/nu-command/src/core_commands/do_.rs index 85d8c2a32..5bd3e5f84 100644 --- a/crates/nu-command/src/core_commands/do_.rs +++ b/crates/nu-command/src/core_commands/do_.rs @@ -218,7 +218,7 @@ impl Command for Do { metadata, trim_end_newline, }), - Ok(PipelineData::Value(..)) | Err(_) if ignore_shell_errors => { + Ok(PipelineData::Value(Value::Error { .. }, ..)) | Err(_) if ignore_shell_errors => { Ok(PipelineData::empty()) } r => r,