From 1e273c46580f225ff7f9b4b3eaebb601f8a5e66c Mon Sep 17 00:00:00 2001 From: liuboF2c Date: Tue, 27 Jan 2026 17:05:19 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=95=B0=E6=8D=AE=E6=BA=90):=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=BA=90=E8=BF=9E=E6=8E=A5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/datasource/provider/CalciteProvider.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java index 089471f760..e0be48042c 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java @@ -100,6 +100,7 @@ public class CalciteProvider extends Provider { schemas.add(resultSet.getString(1)); } } catch (Exception e) { + LogUtil.error(e.getMessage(), e); DEException.throwException(e.getMessage()); } if (datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceConfiguration.DatasourceType.pg.name())) { @@ -154,6 +155,7 @@ public class CalciteProvider extends Provider { } } } catch (Exception e) { + LogUtil.error(e.getMessage(), e); DEException.throwException(e.getMessage()); } return tables; @@ -1625,6 +1627,7 @@ public class CalciteProvider extends Provider { startSshSession(configuration, null, datasourceDTO.getId()); } } catch (Exception e) { + LogUtil.error(e.getMessage(), e); DEException.throwException(e.getMessage()); } } @@ -1676,7 +1679,10 @@ public class CalciteProvider extends Provider { BasicDataSource basicDataSource = (BasicDataSource) jdbcSchema.getDataSource(); basicDataSource.setMaxWaitMillis(5 * 1000); return basicDataSource.getConnection(); + } catch (DEException e) { + throw e; } catch (Exception e) { + LogUtil.error(e.getMessage(), e); DEException.throwException(Translator.get("i18n_invalid_connection") + e.getMessage()); } return null;