summaryrefslogtreecommitdiff
path: root/src/networkAddress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/networkAddress.cpp')
-rw-r--r--src/networkAddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networkAddress.cpp b/src/networkAddress.cpp
index a3f98d9..5b94224 100644
--- a/src/networkAddress.cpp
+++ b/src/networkAddress.cpp
@@ -122,7 +122,7 @@ std::string NetworkAddress::toString() const
bool NetworkAddress::operator<(const NetworkAddress &right) const
{
if (network_address_type_!=right.network_address_type_)
- return false;
+ throw std::runtime_error("NetworkAddress::operator<() address types don't match");
if (network_address_type_==ipv4)
{
return (ipv4_address_ < right.ipv4_address_);