Skip to content
Merged
Prev Previous commit
Next Next commit
sqlite: formatting
  • Loading branch information
louwers committed Dec 28, 2024
commit eb1936b3227651cd85ba60be2abf107dfa08b5cb
11 changes: 5 additions & 6 deletions src/node_sqlite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ inline MaybeLocal<Object> CreateSQLiteError(Isolate* isolate, sqlite3* db) {
env->errcode_string(),
Integer::New(isolate, errcode))
.IsNothing() ||
e->Set(isolate->GetCurrentContext(),
env->errstr_string(),
js_errmsg)
e->Set(isolate->GetCurrentContext(), env->errstr_string(), js_errmsg)
.IsNothing()) {
return MaybeLocal<Object>();
}
Expand All @@ -122,9 +120,10 @@ inline void THROW_ERR_SQLITE_ERROR(Isolate* isolate, int errcode) {

Environment* env = Environment::GetCurrent(isolate);
auto error = CreateSQLiteError(isolate, errstr).ToLocalChecked();
error->Set(isolate->GetCurrentContext(),
env->errcode_string(),
Integer::New(isolate, errcode))
error
->Set(isolate->GetCurrentContext(),
env->errcode_string(),
Integer::New(isolate, errcode))
.ToChecked();
isolate->ThrowException(error);
}
Expand Down
Loading