MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _ErrorCtx_SetError

Function _ErrorCtx_SetError

src/errors/errors.c:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56//------------------------------------------------------------------------------
57
58static void _ErrorCtx_SetError(const char *err_fmt, va_list args) {
59 ErrorCtx *ctx = ErrorCtx_Get();
60 ASSERT(ctx != NULL);
61
62 // An error is already set - free it
63 if(ctx->error != NULL) free(ctx->error);
64
65 int rc __attribute__((unused));
66 rc = vasprintf(&ctx->error, err_fmt, args);
67}
68
69void ErrorCtx_SetError(const char *err_fmt, ...) {
70 // Set the new error

Callers 2

ErrorCtx_SetErrorFunction · 0.85

Calls 1

ErrorCtx_GetFunction · 0.85

Tested by

no test coverage detected