From f072a77d9fcf2e08213f74065b2df217dce44bad Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 19 Oct 2023 12:03:49 +0100 Subject: [PATCH] Updating throw. --- packages/server/src/sdk/app/tables/getters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }