MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Error_set_exc

Function Error_set_exc

src/error.c:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93PyObject *
94Error_set_exc(PyObject* exception)
95{
96 const git_error* error = git_error_last();
97 char* message = (error == NULL) ?
98 "(No error information given)" : error->message;
99 PyErr_SetString(exception, message);
100
101 return NULL;
102}
103
104
105PyObject *

Callers 2

Error_setFunction · 0.85
OdbBackend_read_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…