summaryrefslogtreecommitdiffstats
path: root/examples/transmission/stored_template_send.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/stored_template_send.php')
-rw-r--r--examples/transmission/stored_template_send.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/transmission/stored_template_send.php b/examples/transmission/stored_template_send.php
index de0c01c..4d4adfe 100644
--- a/examples/transmission/stored_template_send.php
+++ b/examples/transmission/stored_template_send.php
@@ -30,6 +30,8 @@ try {
]);
echo 'Congrats! You sent an email using SparkPost!';
} catch (\Exception $exception) {
- echo $exception->getMessage();
+ echo $exception->getAPIMessage() . "\n";
+ echo $exception->getAPICode() . "\n";
+ echo $exception->getAPIDescription() . "\n";
}
?>