set errfunc to debug.traceback in pcall