better not-found error messages for variables and functions

This commit is contained in:
steve donovan
2018-07-16 13:01:11 +02:00
parent 8bf318c99f
commit 2bf3f5e957
2 changed files with 44 additions and 8 deletions

View File

@@ -8,6 +8,6 @@ fn test_mismatched_op() {
assert_eq!(
engine.eval::<i64>("60 + \"hello\""),
Err(EvalAltResult::ErrorFunctionNotFound)
Err(EvalAltResult::ErrorFunctionNotFound("+ (integer,string)".into()))
);
}