From 0a06bd0d5b99a05748dea5f7999acdd1bf5de0b3 Mon Sep 17 00:00:00 2001 From: Richard Leland Date: Mon, 23 May 2016 11:34:01 -0400 Subject: [PATCH] output more error information in webhooks example --- examples/unwrapped/get_webhooks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ 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"; }