16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 15:49:19 +02:00

Prefix error messages

When a Lua code fails to execute and throws an error, the log line now starts from `lua: Runtime error: `.
This commit is contained in:
jakubg1
2026-04-01 16:06:17 +02:00
parent 3a600334a7
commit 5d5264a8f3
2 changed files with 5 additions and 5 deletions

View File

@@ -2141,7 +2141,7 @@ void lua_event::run_() {
if (lua_func != LUA_NOREF)
lua::dispatch_event(lua_state, lua_func, this, m_activator);
} catch (...) {
ErrorLog(simulation::Lua.get_error());
ErrorLog("lua: Runtime error: " + simulation::Lua.get_error());
}
}