Fixed incorrect error message after authentication retries - Fixes
@@ -2704,10 +2704,15 @@ public class CommandHandler {
tryConnectMaxCount--;
}
- else
+ else {
+ if (tryConnectMaxCount == 0)
+ throw new GridClientAuthenticationException("Authentication error, maximum number of " +
+ "retries exceeded");
+
throw e;
}
}
+ }
return EXIT_CODE_OK;
}
catch (IllegalArgumentException e) {
