diff --git a/lib/Rfc8484StubResolver.php b/lib/Rfc8484StubResolver.php index 65ccf2c..852df35 100644 --- a/lib/Rfc8484StubResolver.php +++ b/lib/Rfc8484StubResolver.php @@ -147,11 +147,11 @@ final class Rfc8484StubResolver implements Resolver if ($reason instanceof NoRecordException) { throw $reason; } - $error = $reason->getMessage(); + $error = (string) $reason;//->getMessage(); if ($reason instanceof MultiReasonException) { $reasons = []; foreach ($reason->getReasons() as $reason) { - $reasons []= $reason->getMessage(); + $reasons []= (string) $reason;//->getMessage(); } $error .= " (".\implode(", ", $reasons).")"; }