MCPcopy Create free account
hub / github.com/ElementsProject/elements / ExecErrorCheck

Function ExecErrorCheck

src/leveldb/benchmarks/db_bench_sqlite3.cc:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79static const char* FLAGS_db = nullptr;
80
81inline static void ExecErrorCheck(int status, char* err_msg) {
82 if (status != SQLITE_OK) {
83 fprintf(stderr, "SQL error: %s\n", err_msg);
84 sqlite3_free(err_msg);
85 exit(1);
86 }
87}
88
89inline static void StepErrorCheck(int status) {
90 if (status != SQLITE_DONE) {

Callers 2

OpenMethod · 0.85
WriteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected