Commit 48269823 authored by Vicent Marti's avatar Vicent Marti

bcc.lua: Print traceback on errors

parent 28981655
...@@ -63,7 +63,7 @@ return function() ...@@ -63,7 +63,7 @@ return function()
} }
local command = dofile(tracefile) local command = dofile(tracefile)
local res, err = pcall(command, BPF, utils) local res, err = xpcall(command, debug.traceback, BPF, utils)
if not res then if not res then
io.stderr:write("[ERROR] "..err.."\n") io.stderr:write("[ERROR] "..err.."\n")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment