Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information to unimplemented! messages #540

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions trustfall_core/src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ directive @transform(op: String!) on FIELD
TypeSystemDefinition::Schema(s) => {
assert!(schema.is_none());
if s.node.extend {
unimplemented!();
unimplemented!("Trustfall does not support extending schemas");
}

schema = Some(s.node);
Expand All @@ -140,7 +140,7 @@ directive @transform(op: String!) on FIELD
assert!(!get_builtin_scalars().contains(type_name.as_ref()));

if node.extend {
unimplemented!();
unimplemented!("Trustfall does not support extending schemas");
}

match &node.kind {
Expand All @@ -160,9 +160,11 @@ directive @transform(op: String!) on FIELD
}
}
}
TypeKind::Enum(_) => unimplemented!(),
TypeKind::Union(_) => unimplemented!(),
TypeKind::InputObject(_) => unimplemented!(),
TypeKind::Enum(_) => unimplemented!("Trustfall does not support enum's"),
TypeKind::Union(_) => unimplemented!("Trustfall does not support unions's"),
TypeKind::InputObject(_) => {
unimplemented!("Trustfall does not support input objects's")
}
}

let field_defs = match node.kind {
Expand Down