Show error message if in debug mode
This commit is contained in:
parent
347eabf1d1
commit
02a9646964
@ -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.");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user