mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
improve address resolution error message
This commit is contained in:
parent
2d7c5dcec7
commit
46b1bd2fd2
1 changed files with 2 additions and 3 deletions
|
@ -96,9 +96,8 @@ public final class IpAddressMatcher {
|
||||||
private InetAddress parseAddress(String address) {
|
private InetAddress parseAddress(String address) {
|
||||||
try {
|
try {
|
||||||
return InetAddress.getByName(address);
|
return InetAddress.getByName(address);
|
||||||
}
|
} catch(UnknownHostException e) {
|
||||||
catch (UnknownHostException e) {
|
throw new IllegalArgumentException("Failed to resolve address: " + address, e);
|
||||||
throw new IllegalArgumentException("Failed to parse address: " + address, e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue