preserve original excetption
This commit is contained in:
parent
a8bd57b93c
commit
9c167cc92d
|
@ -363,7 +363,7 @@ public final class RemoteClusterService extends AbstractComponent implements Clo
|
|||
}
|
||||
return new InetSocketAddress(hostAddress, port);
|
||||
} catch (NumberFormatException e) {
|
||||
throw new IllegalArgumentException("port must be a number");
|
||||
throw new IllegalArgumentException("port must be a number", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue