mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46: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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue