We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1bcd1 commit 43664f8Copy full SHA for 43664f8
1 file changed
trilogy/src/trilogy/builder/report.rs
@@ -453,7 +453,8 @@ impl<E: std::error::Error> Error<E> {
453
.with_label(Label::new(dot).with_color(primary).with_message("try removing this `.`"))
454
.with_help("the spread operator uses only two (`..`)")
455
}
456
- ErrorKind::IfExpressionRestriction => ariadne::Report::build(kind, span)
+ ErrorKind::IfExpressionRestriction => ariadne::Report::build(kind, span.clone())
457
+ .with_label(Label::new(span).with_color(primary).with_message("in this expression"))
458
.with_message("an `if` expression must have an `else` clause"),
459
ErrorKind::TaggedTemplateMissingIdentifier => ariadne::Report::build(kind, span.clone())
460
.with_message("a tagged template requires a tag identifier")
0 commit comments