summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Sluift/ElementConvertors/CommandConvertor.cpp3
-rw-r--r--Sluift/Response.cpp6
2 files changed, 6 insertions, 3 deletions
diff --git a/Sluift/ElementConvertors/CommandConvertor.cpp b/Sluift/ElementConvertors/CommandConvertor.cpp
index 7fb7b22..9a2aa5f 100644
--- a/Sluift/ElementConvertors/CommandConvertor.cpp
+++ b/Sluift/ElementConvertors/CommandConvertor.cpp
@@ -190,5 +190,6 @@ void CommandConvertor::doConvertToLua(lua_State* L, boost::shared_ptr<Command> p
if (payload->getForm()) {
- convertors->convertToLuaUntyped(L, payload->getForm());
+ bool result = convertors->convertToLuaUntyped(L, payload->getForm());
+ assert(result);
lua_setfield(L, -2, "form");
}
diff --git a/Sluift/Response.cpp b/Sluift/Response.cpp
index 519379c..5c36a8e 100644
--- a/Sluift/Response.cpp
+++ b/Sluift/Response.cpp
@@ -60,5 +60,6 @@ int Response::convertToLuaResult(lua_State* L) {
lua_pushnil(L);
lua_pushstring(L, getErrorString(error).c_str());
- Sluift::globals.elementConvertor.convertToLuaUntyped(L, error);
+ bool converted = Sluift::globals.elementConvertor.convertToLuaUntyped(L, error);
+ assert(converted);
Lua::registerTableToString(L, -1);
return 3;
@@ -66,5 +67,6 @@ int Response::convertToLuaResult(lua_State* L) {
else {
if (result) {
- Sluift::globals.elementConvertor.convertToLuaUntyped(L, result);
+ bool converted = Sluift::globals.elementConvertor.convertToLuaUntyped(L, result);
+ assert(converted);
Lua::registerTableToString(L, -1);
}