aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/error.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-09 18:03:05 +0800
committerchai <chaifix@163.com>2018-09-09 18:03:05 +0800
commite3ddc74a36e4336d28e9e09586b5194c2e6e6dc6 (patch)
tree979992cd174fe5b488b58ffc831c6d7a67491fd4 /src/lua/common/error.h
parent090bd8229421073305e5e202ac3347e95bbea36d (diff)
*update
Diffstat (limited to 'src/lua/common/error.h')
-rw-r--r--src/lua/common/error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/common/error.h b/src/lua/common/error.h
index f8b62f2..2b2c176 100644
--- a/src/lua/common/error.h
+++ b/src/lua/common/error.h
@@ -19,7 +19,7 @@ namespace lua
vsnprintf(err + strlen(err), FORMAT_MSG_BUFFER_SIZE, fmt, args);
va_end(args);
luax_getglobal(L, MODULE_NAME);
- luax_setfield_string(L, "error", err);
+ luax_setfieldstring(L, "error", err);
}
}