Skip to content

Commit

Permalink
Fix the error message if @recurse is used on a property.
Browse files Browse the repository at this point in the history
It used to incorrectly say the problematic directive is `@optional`, not `@recurse`.
  • Loading branch information
obi1kenobi committed Jun 15, 2024
1 parent 2848959 commit 19a3baf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trustfall_core/src/frontend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ where
// @recurse is not allowed on a property
if connection.recurse.is_some() {
errors.push(FrontendError::UnsupportedDirectiveOnProperty(
"@optional".into(),
"@recurse".into(),
subfield.name.to_string(),
));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Err(UnsupportedDirectiveOnProperty("@optional", "vowelsInName"))
Err(UnsupportedDirectiveOnProperty("@recurse", "vowelsInName"))

0 comments on commit 19a3baf

Please sign in to comment.