Skip to content

Commit 17a3c58

Browse files
committed
Use existing function to set LUA error handler
1 parent 6149a43 commit 17a3c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/libGamedata/lua/LuaInterfaceBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LuaInterfaceBase::LuaInterfaceBase() : lua(kaguya::NoLoadLib()), logger_(LOG), e
2323
lua.openlib("math", luaopen_math);
2424

2525
Register(lua);
26-
lua.setErrorHandler([this](int status, const char* msg) { errorHandler(status, msg); });
26+
setThrowOnError(true);
2727
// Quasi-Standard translate function
2828
lua["_"] = kaguya::function([this](const std::string& s) { return translate(s); });
2929
// No-op translate (translated later)

0 commit comments

Comments
 (0)