MCPcopy Create free account
hub / github.com/microsoft/debugpy / error

Function error

src/debugpy/common/log.py:165–177  ·  view source on GitHub ↗

Logs an error. Returns the output wrapped in AssertionError. Thus, the following:: raise log.error(s, ...) has the same effect as:: log.error(...) assert False, (s.format(...))

(*args, **kwargs)

Source from the content-addressed store, hash-verified

163
164
165def error(*args, **kwargs):
166 """Logs an error.
167
168 Returns the output wrapped in AssertionError. Thus, the following::
169
170 raise log.error(s, ...)
171
172 has the same effect as::
173
174 log.error(...)
175 assert False, (s.format(...))
176 """
177 return AssertionError(write_format("error", *args, **kwargs))
178
179
180def _exception(format_string="", *args, **kwargs):

Callers 2

_get_module_detailsFunction · 0.85
_get_main_module_detailsFunction · 0.85

Calls 1

write_formatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…