preserve original excetption

This commit is contained in:
Simon Willnauer 2017-01-13 12:25:18 +01:00
parent a8bd57b93c
commit 9c167cc92d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}