We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1453c5 commit 7f4ae76Copy full SHA for 7f4ae76
packages/duckdb-wasm/src/bindings/connection.ts
@@ -46,7 +46,14 @@ export class DuckDBConnection {
46
resolve(this._bindings.pollPendingQuery(this._conn));
47
} catch (e: any) {
48
console.log(e);
49
- reject(e);
+ // If the worker is not set, the worker has been terminated
50
+ if (e.message.includes('worker is not set!')) {
51
+ reject(new Error('Worker has been terminated'));
52
+ } else {
53
+ //Otherwise, reject with the error
54
+ reject(e);
55
+ }
56
+
57
}
58
});
59
0 commit comments