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

@ -114,7 +114,9 @@ pub enum ShellError {
IncorrectValue {
msg: String,
#[label = "{msg}"]
span: Span,
val_span: Span,
#[label = "encountered here"]
call_span: Span,
},
/// This value cannot be used with this operator.