diff --git a/src/Whois.php b/src/Whois.php index 3bfdc8e7..16754cf3 100644 --- a/src/Whois.php +++ b/src/Whois.php @@ -250,13 +250,7 @@ public function lookup($query = '', $is_utf = true) */ public function unknown() { - unset($this->query['server']); - $this->query['status'] = 'error'; - $result = array('rawdata' => array()); - $result['rawdata'][] = $this->query['errstr'][] = $this->query['query'] . ' domain is not supported'; - $this->checkDns($result); - $this->fixResult($result, $this->query['query']); - return $result; + throw new \InvalidArgumentException($this->query['query'] . ' domain is not supported'); } /**