Fix do swallowing all output when ignoring errors (#7859)

https://github.com/nushell/nushell/pull/7204#issuecomment-1404363845
This commit is contained in:
Alex Saveau 2023-01-26 04:00:48 -08:00 committed by GitHub
parent f9e99048c4
commit 9d6d43ee55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,