From f0da1c724b0b98de679cf7ceb2c276a6f0f58490 Mon Sep 17 00:00:00 2001 From: Henri DF Date: Tue, 1 Mar 2016 22:01:14 -0800 Subject: [PATCH] formats.cpp: print lua error string (like elsewherE) --- userspace/digwatch/formats.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/digwatch/formats.cpp b/userspace/digwatch/formats.cpp index b6063f16..bf9113e0 100644 --- a/userspace/digwatch/formats.cpp +++ b/userspace/digwatch/formats.cpp @@ -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);