mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-31 06:10:45 +00:00
engine: throw an exception if lua cannot be opened
This commit is contained in:
@@ -24,6 +24,10 @@ along with falco. If not, see <http://www.gnu.org/licenses/>.
|
||||
falco_common::falco_common()
|
||||
{
|
||||
m_ls = lua_open();
|
||||
if(!m_ls)
|
||||
{
|
||||
throw falco_exception("Cannot open lua");
|
||||
}
|
||||
luaL_openlibs(m_ls);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user