Add additional span to IncorrectValue error (#10036)

This commit is contained in:
Jakub Žádník
2023-08-18 20:47:05 +03:00
committed by GitHub
parent cdf09abcc0
commit fb908df17d
4 changed files with 13 additions and 5 deletions

View File

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