This has annoyed me for a while so I thought I'd finally fix it. When specifying a previous exception like
catch(\Exception $previousException)
{
throw new CustomException($previousException->getMessage(), $previousException->getCode(). $previousException);
}
It would show the exception trace for CustomException twice in the email which isn't that helpful. This PR now shows the previous exception trace as well as the wrapped one.
This has annoyed me for a while so I thought I'd finally fix it. When specifying a previous exception like
It would show the exception trace for CustomException twice in the email which isn't that helpful. This PR now shows the previous exception trace as well as the wrapped one.