From c627992cce3d85eea76f7d7f00f2d9b827cfa76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=9A=D0=BE=D1=81=D0=BE=D0=BB=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Fri, 5 Jun 2020 20:55:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B5=D1=82=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B0=D1=81=D1=88=D0=B8=D1=84=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/clouds42/Commands/CoverageCommand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/clouds42/Commands/CoverageCommand.java b/src/main/java/com/clouds42/Commands/CoverageCommand.java index e4b24bc..7791f6d 100644 --- a/src/main/java/com/clouds42/Commands/CoverageCommand.java +++ b/src/main/java/com/clouds42/Commands/CoverageCommand.java @@ -302,7 +302,13 @@ public void run() try { AttachDebugUIResult connectionResult = client.connect(debuggerOptions.getPassword()); if (connectionResult != AttachDebugUIResult.REGISTERED) { - throw new RuntimeDebugClientException("Can't connect to debug server. Connection result: " + connectionResult); + if (connectionResult == AttachDebugUIResult.IB_IN_DEBUG) { + throw new RuntimeDebugClientException("Can't connect to debug server. IB is in debug. Close configurator or EDT first"); + } else if (connectionResult == AttachDebugUIResult.CREDENTIALS_REQUIRED) { + throw new RuntimeDebugClientException("Can't connect to debug server. Use -p option to set correct password"); + } else { + throw new RuntimeDebugClientException("Can't connect to debug server. Connection result: " + connectionResult); + } } client.initSettings(false); client.setAutoconnectDebugTargets(