diff --git a/src/Handlers/DnsGetRecord.php b/src/Handlers/DnsGetRecord.php index fca8a71..49f3a5c 100644 --- a/src/Handlers/DnsGetRecord.php +++ b/src/Handlers/DnsGetRecord.php @@ -17,7 +17,7 @@ public function __invoke(string $domain, int $flag, string $type): array } catch (Throwable $exception) { $error = $exception->getMessage(); } - dd($records); + if ($records === false) { throw CouldNotFetchDns::dnsGetRecordReturnedWithError($error); }