Skip to content

Commit eb85fef

Browse files
nWackytheduke
authored andcommitted
Get back panic in macro [skip ci]
1 parent 2144ad0 commit eb85fef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

juniper_codegen/src/util.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,10 @@ impl GraphQLTypeDefiniton {
946946
match field {
947947
#( #resolve_matches_async )*
948948
_ => {
949-
panic!("Field {} not found on type {}", field, "Mutation");
949+
panic!("Field {} not found on type {:?}",
950+
field,
951+
<Self as #juniper_crate_name::GraphQLType<#scalar>>::name(info)
952+
);
950953
}
951954
}
952955
}

0 commit comments

Comments
 (0)