Skip to content

Commit

Permalink
output more error information in webhooks example
Browse files Browse the repository at this point in the history
  • Loading branch information
richleland committed May 23, 2016
1 parent af51696 commit 0a06bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/unwrapped/get_webhooks.php
Expand Up @@ -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";
}

0 comments on commit 0a06bd0

Please sign in to comment.