aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-10 23:16:46 +0200
committerGitHub <noreply@github.com>2021-09-10 23:16:46 +0200
commit766e885a1b1c5afb7a62f11b427b6d135adeab87 (patch)
tree5fc2194936c5ad9702eba44c8636758645f98712 /src/client
parent7423c4c11e01edecd8db18b147bab4d2f3eeb471 (diff)
downloadminetest-766e885a1b1c5afb7a62f11b427b6d135adeab87.tar.gz
minetest-766e885a1b1c5afb7a62f11b427b6d135adeab87.tar.bz2
minetest-766e885a1b1c5afb7a62f11b427b6d135adeab87.zip
Clean up/improve some scriptapi error handling code
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/client.h b/src/client/client.h
index c1a38ba48..f6030b022 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -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.