mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
18.52.2015 58e42cdaa28e32c1225deda4cfeab261d7156496
opendj-server-legacy/src/main/java/org/opends/server/util/args/LDAPConnectionArgumentParser.java
@@ -329,14 +329,7 @@
              ui.populateLDAPOptions(options),
              ui.getConnectTimeout(),
              out, err);
    } catch (ArgumentException e) {
      if ((e.getCause() != null) && (e.getCause().getCause() != null) &&
          e.getCause().getCause() instanceof SSLException) {
          err.println(ERR_TASKINFO_LDAP_EXCEPTION_SSL.get(ui.getHostName(), ui.getPortNumber()));
        } else {
          err.println(e.getMessageObject());
        }
      } catch (OpenDsException e) {
    } catch (ArgumentException | OpenDsException e) {
      if ((e.getCause() != null) && (e.getCause().getCause() != null) &&
        e.getCause().getCause() instanceof SSLException) {
        err.println(ERR_TASKINFO_LDAP_EXCEPTION_SSL.get(ui.getHostName(), ui.getPortNumber()));