diff --git a/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts b/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts index 2da7d4ff4e..8fd1a44c5c 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts @@ -138,8 +138,7 @@ export class SqlEditorService { defaultSchema?: string ): Promise { if (!contextId) { - console.error('updateSqlContext contextId not provided'); - return; + throw new Error('updateSqlContext contextId not provided'); } await this.gql.sdk.sqlContextSetDefaults({ connectionId,