mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Add additional span to IncorrectValue error (#10036)
This commit is contained in:
@ -275,7 +275,8 @@ fn action(
|
||||
Err(e) => Value::Error {
|
||||
error: Box::new(ShellError::IncorrectValue {
|
||||
msg: format!("Regex error: {e}"),
|
||||
span: find.span,
|
||||
val_span: find.span,
|
||||
call_span: head,
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user