forked from extern/nushell
Apply continue
to each
(#8889)
# Description Fixes #8878 Add continue command on each and added new tests too .
This commit is contained in:
committed by
GitHub
parent
45d33e70db
commit
fff4de5c44
@ -164,6 +164,7 @@ with 'transpose' first."#
|
||||
redirect_stderr,
|
||||
) {
|
||||
Ok(v) => Some(v.into_value(span)),
|
||||
Err(ShellError::Continue(v)) => Some(Value::nothing(v)),
|
||||
Err(ShellError::Break(_)) => None,
|
||||
Err(error) => {
|
||||
let error = chain_error_with_input(error, input_span);
|
||||
@ -188,6 +189,7 @@ with 'transpose' first."#
|
||||
|
||||
let x = match x {
|
||||
Ok(x) => x,
|
||||
Err(ShellError::Continue(v)) => return Some(Value::nothing(v)),
|
||||
Err(ShellError::Break(_)) => return None,
|
||||
Err(err) => {
|
||||
return Some(Value::Error {
|
||||
@ -212,6 +214,7 @@ with 'transpose' first."#
|
||||
redirect_stderr,
|
||||
) {
|
||||
Ok(v) => Some(v.into_value(span)),
|
||||
Err(ShellError::Continue(v)) => Some(Value::nothing(v)),
|
||||
Err(ShellError::Break(_)) => None,
|
||||
Err(error) => {
|
||||
let error = Box::new(chain_error_with_input(error, input_span));
|
||||
|
Reference in New Issue
Block a user