diff options
author | Richard Leland <rich@richleland.com> | 2016-05-23 11:34:01 -0400 |
---|---|---|
committer | Richard Leland <rich@richleland.com> | 2016-05-23 11:34:01 -0400 |
commit | 0a06bd0d5b99a05748dea5f7999acdd1bf5de0b3 (patch) | |
tree | c6f6920c2d6696f1b6196f99114c3cb83c9ad3a2 | |
parent | af5169612d4fe02824383cd8e8fdbe0a108ff246 (diff) | |
download | php-sparkpost-0a06bd0d5b99a05748dea5f7999acdd1bf5de0b3.zip php-sparkpost-0a06bd0d5b99a05748dea5f7999acdd1bf5de0b3.tar.gz php-sparkpost-0a06bd0d5b99a05748dea5f7999acdd1bf5de0b3.tar.bz2 |
output more error information in webhooks example
-rw-r--r-- | examples/unwrapped/get_webhooks.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/unwrapped/get_webhooks.php b/examples/unwrapped/get_webhooks.php index e149b21..90f7a9c 100644 --- a/examples/unwrapped/get_webhooks.php +++ b/examples/unwrapped/get_webhooks.php @@ -22,5 +22,7 @@ try { echo 'Congrats! You got a list of all your webhooks from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getAPIMessage()."\n"; + echo $exception->getAPICode()."\n"; + echo $exception->getAPIDescription()."\n"; } |