Skip to content

Commit f064001

Browse files
committed
include more details in error msg
1 parent d9b1a08 commit f064001

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/formality-core/src/parse/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,9 @@ where
652652
None => Err(ParseError::at(
653653
text0,
654654
format!(
655-
"wrong kind, expected a {}, found a {:?}",
655+
"wrong kind, expected a {}, found `{:?}`, which is a `{:?}`",
656656
type_name,
657+
parameter,
657658
parameter.kind()
658659
),
659660
)),

0 commit comments

Comments
 (0)