diff --git a/juniper/src/validation/rules/no_unused_variables.rs b/juniper/src/validation/rules/no_unused_variables.rs index 20c437a2..35e5f933 100644 --- a/juniper/src/validation/rules/no_unused_variables.rs +++ b/juniper/src/validation/rules/no_unused_variables.rs @@ -143,11 +143,11 @@ where fn error_message(var_name: &str, op_name: Option<&str>) -> String { if let Some(op_name) = op_name { format!( - r#"Variable "${}" is not defined by operation "{}""#, + r#"Variable "${}" is not used by operation "{}""#, var_name, op_name ) } else { - format!(r#"Variable "${}" is not defined"#, var_name) + format!(r#"Variable "${}" is not used"#, var_name) } }