From fd145d6eebf5b75705c4e257b6e7b7b1666b7214 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Mon, 11 May 2020 10:00:03 -0600 Subject: [PATCH] Make FIXME throws uniquely identifiable --- llarp/net/address_info.cpp | 4 ++-- llarp/net/ip_address.cpp | 6 +++--- llarp/net/sock_addr.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llarp/net/address_info.cpp b/llarp/net/address_info.cpp index a8a62bc61..a5830aba4 100644 --- a/llarp/net/address_info.cpp +++ b/llarp/net/address_info.cpp @@ -152,13 +152,13 @@ namespace llarp IpAddress AddressInfo::toIpAddress() const { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - AddressInfo::toIpAddress()"); } void AddressInfo::fromIpAddress(const IpAddress& address) { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - AddressInfo::fromIpAddress()"); } std::ostream& diff --git a/llarp/net/ip_address.cpp b/llarp/net/ip_address.cpp index 385dd2c34..61823d3fa 100644 --- a/llarp/net/ip_address.cpp +++ b/llarp/net/ip_address.cpp @@ -80,7 +80,7 @@ namespace llarp bool IpAddress::isIPv4() { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - IpAddress::isIPv4()"); } bool @@ -117,13 +117,13 @@ namespace llarp bool IpAddress::operator<(const IpAddress& other) const { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - IpAddress::operator<()"); } bool IpAddress::operator==(const IpAddress& other) const { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - IpAddress::operator==()"); } std::ostream& diff --git a/llarp/net/sock_addr.cpp b/llarp/net/sock_addr.cpp index 0ad501eb5..3426acad6 100644 --- a/llarp/net/sock_addr.cpp +++ b/llarp/net/sock_addr.cpp @@ -261,7 +261,7 @@ namespace llarp std::ostream& operator<<(std::ostream& out, const SockAddr& address) { - throw std::runtime_error("FIXME"); + throw std::runtime_error("FIXME - SockAddr operator<<()"); } } // namespace llarp