fix(query): correct expected and actual capture names in query assertions error message

This commit is contained in:
Will Lillis 2025-04-13 23:50:30 -04:00
parent 0220d9d93d
commit 50eaf5befd

View file

@ -237,8 +237,8 @@ pub fn assert_expected_captures(
return Err(anyhow!(
"Assertion failed: at {}, found {}, expected {}",
found.start,
found.name,
assertion.expected_capture_name,
found.name
));
}
} else {