mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:35:56 +02:00
Expose errors early when possible
This commit is contained in:
@ -61,7 +61,7 @@ impl Command for If {
|
||||
Ok(Value::Nothing { span })
|
||||
}
|
||||
}
|
||||
_ => Err(ShellError::CantConvert("bool".into(), result.span())),
|
||||
_ => Err(ShellError::CantConvert("bool".into(), result.span()?)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user