diff --git a/src/Service.cpp b/src/Service.cpp index 17bf4b3..9bef47f 100644 --- a/src/Service.cpp +++ b/src/Service.cpp @@ -88,9 +88,9 @@ LuaService& LuaService::operator=(LuaService&& service) noexcept { void LuaService::load() { if (!loaded) { - loaded = true; - if (lua_pcall(lua, 0, 0 ,0) != 0) { + loaded = true; + spdlog::error("[{}] Unable to call 'lua_pcall()' in load(). [Lua: '{}']", name, lua_tostring(lua,-1)); } }