From c141ff51b74583211355a4e367a34bc4b1d29094 Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Mon, 22 Sep 2014 15:18:51 -0700 Subject: [PATCH] fix unittest Summary: Looks like the test explicitly looks for InvalidAddressFamilyException. I don't think any users are depending on this particular error type either way, I just switched it to InvalidAddressFamilyException Test Plan: unit tests Reviewed By: ldbrandy@fb.com Subscribers: doug, njormrod FB internal diff: D1570363 Tasks: 5153819 --- folly/SocketAddress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/SocketAddress.cpp b/folly/SocketAddress.cpp index b8ce1ea8..4834a134 100644 --- a/folly/SocketAddress.cpp +++ b/folly/SocketAddress.cpp @@ -290,7 +290,7 @@ void SocketAddress::setFromSockaddr(const struct sockaddr_un* address, const folly::IPAddress& SocketAddress::getIPAddress() const { auto family = getFamily(); if (family != AF_INET && family != AF_INET6) { - throw std::invalid_argument("getIPAddress called on a non-ip address"); + throw InvalidAddressFamilyException(family); } return storage_.addr; } -- 2.34.1