Fix unused variable error message
Was copied from undefined variable error message.
This commit is contained in:
parent
1148c75a1d
commit
8f1bf8c661
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 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue