Skip to content

Commit

Permalink
Детальная расшифровка ошибок подключения
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Косолапов committed Jun 5, 2020
1 parent 709f999 commit c627992
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/clouds42/Commands/CoverageCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c627992

Please sign in to comment.