Skip to content

Commit

Permalink
ultraverbose logging
Browse files Browse the repository at this point in the history
danog committed Dec 26, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
danog Daniil Gentili
1 parent aa40bb7 commit 785fddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Rfc8484StubResolver.php
Original file line number Diff line number Diff line change
@@ -147,11 +147,11 @@ public function resolve(string $name, int $typeRestriction = null): Promise
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).")";
}

0 comments on commit 785fddc

Please sign in to comment.