added files and fixed a bug in run() and thread()

This commit is contained in:
Dummi26
2023-03-17 16:54:27 +01:00
parent 04b9cbc4c7
commit fff0b868ce
4 changed files with 327 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ pub mod to_runnable {
if builtin.can_take(&rargs.iter().map(|v| v.out()).collect()) {
RStatementEnum::BuiltinFunction(builtin, rargs)
} else {
todo!("ERR: Builtin function with wrong args - this isn't a proper error yet, sorry.");
todo!("ERR: Builtin function \"{v}\" with wrong args - this isn't a proper error yet, sorry.");
}
} else {
return Err(ToRunnableError::UseOfUndefinedFunction(v.clone()));