MCPcopy Index your code
hub / github.com/nodejs/node / make_traceback

Function make_traceback

tools/inspector_protocol/jinja2/debug.py:132–140  ·  view source on GitHub ↗

Creates a processed traceback object from the exc_info.

(exc_info, source_hint=None)

Source from the content-addressed store, hash-verified

130
131
132def make_traceback(exc_info, source_hint=None):
133 """Creates a processed traceback object from the exc_info."""
134 exc_type, exc_value, tb = exc_info
135 if isinstance(exc_value, TemplateSyntaxError):
136 exc_info = translate_syntax_error(exc_value, source_hint)
137 initial_skip = 0
138 else:
139 initial_skip = 1
140 return translate_exception(exc_info, initial_skip)
141
142
143def translate_syntax_error(error, source=None):

Callers

nothing calls this directly

Calls 2

translate_syntax_errorFunction · 0.85
translate_exceptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…