1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Clean up/improve some scriptapi error handling code

This commit is contained in:
sfan5 2021-09-10 23:16:46 +02:00 committed by GitHub
parent 7423c4c11e
commit 766e885a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 120 additions and 94 deletions

View file

@ -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.