critical lua fixes

This commit is contained in:
MihailRis
2024-02-19 12:58:29 +03:00
parent 9d82e3416b
commit 086bcec9c2
9 changed files with 37 additions and 11 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ runnable scripting::create_runnable(
const std::string& file
) {
return [=](){
state->execute(env, src, file);
try {
state->execute(env, src, file);
} catch (const lua::luaerror& err) {
std::cerr << err.what() << std::endl;
}
};
}