aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/ldo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/util/lua/ldo.cpp')
-rw-r--r--engines/sword25/util/lua/ldo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sword25/util/lua/ldo.cpp b/engines/sword25/util/lua/ldo.cpp
index c162a62e98..a230097f2a 100644
--- a/engines/sword25/util/lua/ldo.cpp
+++ b/engines/sword25/util/lua/ldo.cpp
@@ -98,6 +98,16 @@ static void resetstack (lua_State *L, int status) {
}
+// Added in ScummVM. Refer to http://www.lua.org/manual/5.1/manual.html
+static const char* luaErrorDescription[] = {
+ "No error",
+ "Coroutine yield", // not an actual error, see lua_resume
+ "Runtime error",
+ "Syntax error during pre-compilation", // refer to lua_load
+ "Memory allocation error",
+ "Error while running the error handler function"
+};
+
void luaD_throw (lua_State *L, int errcode) {
if (L->errorJmp) {
L->errorJmp->status = errcode;