diff --git a/packages/server/src/sdk/app/tables/getters.ts b/packages/server/src/sdk/app/tables/getters.ts index 81467bba6c..80524a0413 100644 --- a/packages/server/src/sdk/app/tables/getters.ts +++ b/packages/server/src/sdk/app/tables/getters.ts @@ -84,7 +84,7 @@ export async function getExternalTablesInDatasource( ): Promise> { const datasource = await datasources.get(datasourceId, { enriched: true }) if (!datasource || !datasource.entities) { - throw "Datasource is not configured fully." + throw new Error("Datasource is not configured fully.") } return datasource.entities }