MCPcopy Create free account
hub / github.com/ddnet/ddnet / SqliteHandleError

Function SqliteHandleError

src/engine/client/sqlite.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18int SqliteHandleError(IConsole *pConsole, int Error, sqlite3 *pSqlite, const char *pContext)
19{
20 if(Error != SQLITE_OK && Error != SQLITE_DONE && Error != SQLITE_ROW)
21 {
22 char aBuf[512];
23 str_format(aBuf, sizeof(aBuf), "%s at %s", sqlite3_errmsg(pSqlite), pContext);
24 pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "sqlite3", aBuf);
25 }
26 return Error;
27}
28
29CSqlite SqliteOpen(IConsole *pConsole, IStorage *pStorage, const char *pPath)
30{

Callers

nothing calls this directly

Calls 2

str_formatFunction · 0.85
PrintMethod · 0.45

Tested by

no test coverage detected