mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 20:51:41 +02:00
Expose errors early when possible
This commit is contained in:
@ -45,7 +45,7 @@ fn eval_call(context: &EvaluationContext, call: &Call, input: Value) -> Result<V
|
||||
}
|
||||
|
||||
let span = if let Some(rest_item) = rest_items.first() {
|
||||
rest_item.span()
|
||||
rest_item.span()?
|
||||
} else {
|
||||
Span::unknown()
|
||||
};
|
||||
|
Reference in New Issue
Block a user