Skip to content

Commit 9939d25

Browse files
committed
Update demo.php
- Optimized error handling
1 parent 6d8482c commit 9939d25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/demo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
echo $e->getMessage() . ': ' . $e->getResponse()->getBody();
100100
echo '<br/><a href="?">restart</a>';
101101
die();
102-
} catch (\Exception $e) {
102+
} catch (\Throwable $e) {
103103
echo 'An error occured:';
104104
echo $e->getMessage();
105105
echo '<br/><a href="?">restart</a>';

0 commit comments

Comments
 (0)