mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-27 10:28:54 +00:00
formats.cpp: print lua error string (like elsewherE)
This commit is contained in:
parent
a52441dcaa
commit
f0da1c724b
@ -43,6 +43,7 @@ int digwatch_formats::format_event (lua_State *ls)
|
||||
|
||||
if (!lua_islightuserdata(ls, -1) || !lua_islightuserdata(ls, -2)) {
|
||||
string err = "invalid arguments passed to format_event() ";
|
||||
fprintf(stderr, "%s\n", err.c_str());
|
||||
throw sinsp_exception("format_event error");
|
||||
}
|
||||
sinsp_evt* evt = (sinsp_evt*)lua_topointer(ls, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user