Improve error message

Write a more correct error message.
This commit is contained in:
finga 2021-11-22 14:40:39 +01:00
parent 33e39f0b40
commit 506001a366

View file

@ -103,7 +103,7 @@ impl Hook {
)
})?,
)?,
None => bail!("Missing expression in variable `{}`", token),
None => bail!("Invalid expression `{}`", token),
};
command.push_str(&replaced);