diff --git a/src/main/java/com/sparrowwallet/sparrow/net/IpAddressMatcher.java b/src/main/java/com/sparrowwallet/sparrow/net/IpAddressMatcher.java index 456fb325..654770a6 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/IpAddressMatcher.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/IpAddressMatcher.java @@ -96,9 +96,8 @@ public final class IpAddressMatcher { private InetAddress parseAddress(String address) { try { return InetAddress.getByName(address); - } - catch (UnknownHostException e) { - throw new IllegalArgumentException("Failed to parse address: " + address, e); + } catch(UnknownHostException e) { + throw new IllegalArgumentException("Failed to resolve address: " + address, e); } }