diff options
Diffstat (limited to 'Sluift/Response.cpp')
| -rw-r--r-- | Sluift/Response.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Sluift/Response.cpp b/Sluift/Response.cpp index 519379c..5c36a8e 100644 --- a/Sluift/Response.cpp +++ b/Sluift/Response.cpp @@ -53,25 +53,27 @@ static std::string getErrorString(boost::shared_ptr<ErrorPayload> error) { } Response::~Response() { } int Response::convertToLuaResult(lua_State* L) { if (error) { 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; } else { if (result) { - Sluift::globals.elementConvertor.convertToLuaUntyped(L, result); + bool converted = Sluift::globals.elementConvertor.convertToLuaUntyped(L, result); + assert(converted); Lua::registerTableToString(L, -1); } else { lua_pushboolean(L, 1); } return 1; } } |
Swift