From e4a2bad5d407514ca339b81a39f8ee84c4d0c0b4 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sun, 15 Dec 2024 13:50:59 +0100 Subject: [PATCH] Fix incorrect return --- cpp/DBHostObject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/DBHostObject.cpp b/cpp/DBHostObject.cpp index 18a552d..eb15f09 100644 --- a/cpp/DBHostObject.cpp +++ b/cpp/DBHostObject.cpp @@ -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);