Skip to content

Commit 601146b

Browse files
committed
fixed demo with exceptions
1 parent b87dc05 commit 601146b

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

demo/index.php

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,10 @@ function printCode(?string $code, bool $asHtml = true): void
195195
]);
196196
$info = $embed->get(getUrl());
197197
} catch (Exception $exception) {
198-
echo '<table>';
199-
foreach ($dispatcher->getAllResponses() as $response) {
200-
echo '<tr>';
201-
echo '<th>'.$response->getUrl().'</th>';
202-
echo '</tr><tr><td>';
203-
printHeaders($response->getHeaders());
204-
echo '</td><tr><td><pre>';
205-
printArray($response->getInfo());
206-
echo '</td><tr><td><pre>';
207-
printText($response->getContent());
208-
echo '</pre></td></tr>';
209-
}
210-
echo '</table>';
211-
212-
throw $exception;
198+
echo '<pre>';
199+
echo $exception;
200+
echo '</pre>';
201+
die();
213202
}
214203
?>
215204

0 commit comments

Comments
 (0)