mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 00:04:55 +00:00
improve address resolution error message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user