diff --git a/lib/Tracking_EasyPost.lib.php b/lib/Tracking_EasyPost.lib.php index f847ff9..2a65d49 100644 --- a/lib/Tracking_EasyPost.lib.php +++ b/lib/Tracking_EasyPost.lib.php @@ -26,6 +26,10 @@ class Tracking_EasyPost { )); } } catch (Exception $ex) { + if (env("debugmode", false)) { + echo $ex->getMessage(); + echo $ex->getTraceAsString(); + } throw new TrackingException("There was a server problem. This code cannot be tracked right now."); }