Skip to content

Commit

Permalink
Fix error report for ariadne 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Jan 15, 2025
1 parent c01be06 commit 7834567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ fn main() {
parsed.into_output().expect("no output from parser without errors")
} else {
let mut colors = ColorGenerator::new();
let mut report = Report::build(ReportKind::Error, "input", 0).with_message("Unable to parse dice expression");
let mut report =
Report::build(ReportKind::Error, ("input", 0..input.len())).with_message("Unable to parse dice expression");

for err in parsed.errors() {
report.add_label(
Expand Down

0 comments on commit 7834567

Please sign in to comment.