Skip to content

Commit

Permalink
Fix incorrect return
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Dec 15, 2024
1 parent c950144 commit e4a2bad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/DBHostObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ void DBHostObject::create_jsi_functions() {
}
if (!args[0].isString() || !args[1].isString()) {
throw std::runtime_error(
"dbName, databaseToAttach and alias must be a strings");
return {};
"[op-sqlite] database name and alias must be a strings");
}

std::string dbName = args[0].asString(rt).utf8(rt);
Expand Down

0 comments on commit e4a2bad

Please sign in to comment.