Skip to content

Commit 0a06bd0

Browse files
committed
output more error information in webhooks example
1 parent af51696 commit 0a06bd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: examples/unwrapped/get_webhooks.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222

2323
echo 'Congrats! You got a list of all your webhooks from SparkPost!';
2424
} catch (\Exception $exception) {
25-
echo $exception->getMessage();
25+
echo $exception->getAPIMessage()."\n";
26+
echo $exception->getAPICode()."\n";
27+
echo $exception->getAPIDescription()."\n";
2628
}

0 commit comments

Comments
 (0)