From da9e2fb47b4e6a81734024385eb7768ea73b7df6 Mon Sep 17 00:00:00 2001 From: hades Date: Mon, 9 Nov 2020 14:27:13 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-42972=20=E8=BF=9C=E7=A8=8B=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E5=B9=B3=E5=8F=B0=E5=AF=86=E7=A0=81-=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E8=B6=85=E6=9C=9F=EF=BC=8C=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E8=BF=9E=E6=8E=A5=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E5=AF=86=E7=A0=81=EF=BC=8C=E6=8A=A5=E9=94=99=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/start/module/DesignerWorkspaceProvider.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/start/module/DesignerWorkspaceProvider.java b/designer-realize/src/main/java/com/fr/start/module/DesignerWorkspaceProvider.java index 43ae6ddcd..ad9aeb660 100644 --- a/designer-realize/src/main/java/com/fr/start/module/DesignerWorkspaceProvider.java +++ b/designer-realize/src/main/java/com/fr/start/module/DesignerWorkspaceProvider.java @@ -6,6 +6,8 @@ import com.fr.design.constants.DesignerLaunchStatus; import com.fr.design.env.DesignerWorkspaceGenerator; import com.fr.design.env.DesignerWorkspaceInfo; import com.fr.design.env.LocalDesignerWorkspaceInfo; +import com.fr.design.i18n.Toolkit; +import com.fr.env.TestConnectionResult; import com.fr.event.Event; import com.fr.event.EventDispatcher; import com.fr.event.Listener; @@ -74,9 +76,11 @@ public class DesignerWorkspaceProvider extends Activator { } } catch (Throwable e) { FineLoggerFactory.getLogger().error(e.getMessage(), e); - if (e.getCause() instanceof WorkspaceCheckException && workspaceInfo != null) { + if (e.getCause() instanceof WorkspaceCheckException) { WorkspaceCheckException exception = (WorkspaceCheckException) e.getCause(); - EnvChangeEntrance.getInstance().handleWorkspaceCheckException(exception, EnvChangeEntrance.PopTipStrategy.LATER, workspaceInfo.getConnection()); + // 输出标准详情 + TestConnectionResult result = TestConnectionResult.parseByException(exception); + FineLoggerFactory.getLogger().error(result.getText().replaceAll(TestConnectionResult.WRAP, StringUtils.EMPTY) + Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Modify_PassWord")); } EnvChangeEntrance.getInstance().dealEvnExceptionWhenStartDesigner(); }