Skip to content

Commit e66e68f

Browse files
committed
Throw error instead of returning non-existing enum
1 parent eb8fb57 commit e66e68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/libsql/bridge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ DB opsqlite_libsql_open(std::string const &name, std::string const &last_path,
100100
&errMsg);
101101

102102
if (status != 0) {
103-
return {.type = SQLiteError, .message = errMsg};
103+
throw std::runtime_error(errMsg);
104104
} else {
105105
LOGI("Loaded CRSQlite successfully");
106106
}

0 commit comments

Comments
 (0)