Skip to content

Commit fccd2ed

Browse files
authored
DuckDBClient: don't be silent on insertCSVFromPath error (#354)
1 parent c9a5926 commit fccd2ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/duckdb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ async function insertFile(database, name, file, options) {
183183
if (error.toString().includes("Could not convert")) {
184184
return await insertUntypedCSV(connection, file, name);
185185
}
186+
throw error;
186187
});
187188
}
188189
case "application/json":

0 commit comments

Comments
 (0)