Show error message if in debug mode

This commit is contained in:
Skylar Ittner 2022-04-15 20:05:14 -06:00
parent 347eabf1d1
commit 02a9646964

View File

@ -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.");
}