MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / PropagateJSError

Method PropagateJSError

src/util/custom-function.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40protected:
41
42 void PropagateJSError(sqlite3_context* invocation) {
43 assert(db->GetState()->was_js_error == false);
44 db->GetState()->was_js_error = true;
45 sqlite3_result_error(invocation, "", 0);
46 }
47
48 std::string GetDataErrorPrefix() {
49 return std::string("User-defined function ") + name + "() returned";

Callers 1

xFuncMethod · 0.95

Calls 1

GetStateMethod · 0.80

Tested by

no test coverage detected