Skip to content

Commit 50eaf5b

Browse files
committed
fix(query): correct expected and actual capture names in query assertions error message
1 parent 0220d9d commit 50eaf5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/query_testing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ pub fn assert_expected_captures(
237237
return Err(anyhow!(
238238
"Assertion failed: at {}, found {}, expected {}",
239239
found.start,
240+
found.name,
240241
assertion.expected_capture_name,
241-
found.name
242242
));
243243
}
244244
} else {

0 commit comments

Comments
 (0)