diff --git a/trustfall_core/src/frontend/mod.rs b/trustfall_core/src/frontend/mod.rs index b0a281f1..5fb42c90 100644 --- a/trustfall_core/src/frontend/mod.rs +++ b/trustfall_core/src/frontend/mod.rs @@ -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(), )); } diff --git a/trustfall_core/test_data/tests/frontend_errors/recurse_used_on_property.frontend-error.ron b/trustfall_core/test_data/tests/frontend_errors/recurse_used_on_property.frontend-error.ron index 09b48389..fa808382 100644 --- a/trustfall_core/test_data/tests/frontend_errors/recurse_used_on_property.frontend-error.ron +++ b/trustfall_core/test_data/tests/frontend_errors/recurse_used_on_property.frontend-error.ron @@ -1 +1 @@ -Err(UnsupportedDirectiveOnProperty("@optional", "vowelsInName")) +Err(UnsupportedDirectiveOnProperty("@recurse", "vowelsInName"))