We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6149a43 commit 17a3c58Copy full SHA for 17a3c58
1 file changed
libs/libGamedata/lua/LuaInterfaceBase.cpp
@@ -23,7 +23,7 @@ LuaInterfaceBase::LuaInterfaceBase() : lua(kaguya::NoLoadLib()), logger_(LOG), e
23
lua.openlib("math", luaopen_math);
24
25
Register(lua);
26
- lua.setErrorHandler([this](int status, const char* msg) { errorHandler(status, msg); });
+ setThrowOnError(true);
27
// Quasi-Standard translate function
28
lua["_"] = kaguya::function([this](const std::string& s) { return translate(s); });
29
// No-op translate (translated later)
0 commit comments