Merge pull request #481 from cairomassimo/fix-unused-variable-error-message

Small fix/typo: unused variable error message
This commit is contained in:
David Pedersen 2019-12-11 18:00:38 +01:00 committed by GitHub
commit 3a6d5e6a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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