Updating throw.

This commit is contained in:
mike12345567 2023-10-19 12:03:49 +01:00
parent 54d976f750
commit f072a77d9f
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export async function getExternalTablesInDatasource(
): Promise<Record<string, Table>> {
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
}