Commit c141ff51 authored by Dave Watson's avatar Dave Watson Committed by Anton Likhtarov

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
parent 8cf3e4f8
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment