Bug fixed and back to state before refactor/rewrite. Need to get that darn let5 working now! That's why we did this

This commit is contained in:
Nathan Braswell
2021-09-06 23:00:04 -04:00
parent 873e7c4244
commit 12271ff27c
2 changed files with 22 additions and 14 deletions

View File

@@ -880,7 +880,7 @@ fun main(argc: int, argv: **char): int {
return make_pair(dynamic_env, KPResult::Ok(params[0]))
} else if params.size == 2 {
if !params[1].is_env() {
return make_pair(null<KPEnv>(), KPResult::Err(kpString(str("second param to eval is not an environment"))))
return make_pair(null<KPEnv>(), KPResult::Err(kpString(str("second param to eval is not an environment") + pr_str(params[1], true))))
}
return make_pair(params[1].get_env(), KPResult::Ok(params[0]))
}