mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Clean up/improve some scriptapi error handling code
This commit is contained in:
@@ -325,6 +325,10 @@ public:
|
||||
m_access_denied = true;
|
||||
m_access_denied_reason = reason;
|
||||
}
|
||||
inline void setFatalError(const LuaError &e)
|
||||
{
|
||||
setFatalError(std::string("Lua :") + e.what());
|
||||
}
|
||||
|
||||
// Renaming accessDeniedReason to better name could be good as it's used to
|
||||
// disconnect client when CSM failed.
|
||||
|
Reference in New Issue
Block a user