Merge pull request #481 from cairomassimo/fix-unused-variable-error-message
Small fix/typo: unused variable error message
This commit is contained in:
commit
3a6d5e6a46
1 changed files with 2 additions and 2 deletions
|
@ -143,11 +143,11 @@ where
|
||||||
fn error_message(var_name: &str, op_name: Option<&str>) -> String {
|
fn error_message(var_name: &str, op_name: Option<&str>) -> String {
|
||||||
if let Some(op_name) = op_name {
|
if let Some(op_name) = op_name {
|
||||||
format!(
|
format!(
|
||||||
r#"Variable "${}" is not defined by operation "{}""#,
|
r#"Variable "${}" is not used by operation "{}""#,
|
||||||
var_name, op_name
|
var_name, op_name
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
format!(r#"Variable "${}" is not defined"#, var_name)
|
format!(r#"Variable "${}" is not used"#, var_name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue