Skip to content

Commit d4cd441

Browse files
authored
Merge pull request OP-Engineering#280 from OP-Engineering/oscar/fix-incorrect-crsqlite
Throw error instead of returning non-existing enum
2 parents dc93bd5 + 5fdafae commit d4cd441

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

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)