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,