Fixed error reporting for unexpected address family.