aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-10-05 11:04:49 +0000
committerstephan <stephan@noemail.net>2023-10-05 11:04:49 +0000
commita357bdbfc462b25a18538c43ec6409b5d6cf5eee (patch)
tree1a0afdc40ac18d473272f4ab44a8348ab4ccab5c /ext/wasm/api
parent3a3912f21cee029ff01347e4c0c49ae97e03a9e6 (diff)
downloadsqlite-a357bdbfc462b25a18538c43ec6409b5d6cf5eee.tar.gz
sqlite-a357bdbfc462b25a18538c43ec6409b5d6cf5eee.zip
Do not squelch exceptions from SAHPool VFS importDb() - rethrow them. Problem reported in [forum:c80fc578809b80a3|forum post c80fc578809b80a3].
FossilOrigin-Name: 325bcdea4a436e514d83095d3893caf07a714b718e1b643507179b101c108e3b
Diffstat (limited to 'ext/wasm/api')
-rw-r--r--ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js b/ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js
index 327b6a95a..e76fbf028 100644
--- a/ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js
+++ b/ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js
@@ -900,6 +900,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
}/*force db out of WAL mode*/);
}catch(e){
this.setAssociatedPath(sah, '', 0);
+ throw e;
}
this.setAssociatedPath(sah, name, capi.SQLITE_OPEN_MAIN_DB);
return nWrote;