diff --git a/connectors/src/lib/data_sources.ts b/connectors/src/lib/data_sources.ts index de3698f2fe75..dc8ca5645bc1 100644 --- a/connectors/src/lib/data_sources.ts +++ b/connectors/src/lib/data_sources.ts @@ -535,7 +535,7 @@ export async function upsertTableFromCsv({ localLogger.error("Unknown error uploading structured data to Dust."); } - throw e; + throw new Error("Error uploading structured data to Dust."); } const elapsed = new Date().getTime() - now.getTime();