Fix unused variable error message

Was copied from undefined variable error message.
This commit is contained in:
Massimo Cairo 2019-12-11 17:27:06 +01:00
parent 1148c75a1d
commit 8f1bf8c661

View file

@ -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)
}
}