summaryrefslogtreecommitdiffstats
path: root/examples/transmission/rfc822.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/rfc822.php')
-rw-r--r--examples/transmission/rfc822.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/transmission/rfc822.php b/examples/transmission/rfc822.php
index c27fafb..5ec5aef 100644
--- a/examples/transmission/rfc822.php
+++ b/examples/transmission/rfc822.php
@@ -26,6 +26,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";
}
?>