in awslambdaric/bootstrap.py [0:0]
def make_xray_fault(ex_type, ex_msg, working_dir, tb_tuples):
stack = []
files = set()
for t in tb_tuples:
tb_file, tb_line, tb_method, tb_code = t
tb_xray = {"label": tb_method, "path": tb_file, "line": tb_line}
stack.append(tb_xray)
files.add(tb_file)
formatted_ex = {"message": ex_msg, "type": ex_type, "stack": stack}
xray_fault = {
"working_directory": working_dir,
"exceptions": [formatted_ex],
"paths": list(files),
}
return xray_fault