Elao / ErrorNotifierBundle

This bundle send you an email when an error appear (500 or 404 if enable)
59 stars 27 forks source link

Show previous exception stack trace #61

Closed ollietb closed 8 years ago

ollietb commented 8 years ago

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.

ollietb commented 8 years ago

It looks like this also fixes the issues in #54

benji07 commented 8 years ago

👍